I have created an EF data model in my application using the Generate from DB option, I have some legacy code so I can't do Code First
How do I use the Repository Classes in the Library with the generated model
Out of the box I get the Error
Error 1 The type 'RepositoryTest.UserInfo' cannot be used as type parameter 'T' in the generic type or method 'ComLib.Entities.RepositorySql<T>'. There is no implicit reference conversion from 'RepositoryTest.UserInfo'
to 'ComLib.Entities.IEntity'. C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\RepositoryTest\Tests\Class1Tests.cs 38 59 Tests
Is there a work around?
What is the recommended method?