Can Entity Framework model be passed a SQL script to be run against the database
        Posted  
        
            by Greg
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Greg
        
        
        
        Published on 2010-05-29T21:46:26Z
        Indexed on 
            2010/05/29
            21:52 UTC
        
        
        Read the original article
        Hit count: 346
        
Is it possible to pass a SQL script to some method that Entity Framework has to run it against my model? e.g. equivalent of:
context.ExecuteStoreCommand(<tsql script path>); 
Background: I want a way to reset the database during unit tests, and making a call to run the EF generated TSQL script (from Generate Database from Model) seems one way to achieve this.
© Stack Overflow or respective owner