Categories
C# Notes

EF DB First -> Code First

We can auto generate Code First POCO Classes using Add Model and Code First From Existing Database Option. When we use above option we we will get our POCO classes but we may encounter few issues with them so we need to take a look back to them again for following things Once model are […]

Categories
C# Notes

Things to take care while working with EF Code First

Code First Can be enabled for existing db or blank db Command for enabling Code First Enabled-Migrations This will generate Migration Folder and Migration Configuration File where by default automaticmigration will be false. Many people consider to change that as that will not apply pending changes to database automatically When we do have change in […]