Category: MVC

Checking if the value of type DateTime is null

Favorite

Read more

ConnectionStrings – (Localdb)\v11.0

[cc] <add name=”SimpleSecurityConnection1″ connectionString=”Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-RefApp-20131021102513.mdf;Initial Catalog=aspnet-RefApp-20131021102513;Integrated Security=True” providerName=”System.Data.SqlClient” /> [/cc]   Favorite

Read more

DBContext & DBSet

DbContext: Is a simplified alternative to ObjectContext and is the primary object for interacting with a database using a specific model. DbSet: Is a simplified alternative to ObjectSet and is used to perform CRUD operations against a specific type from the model. DbContext and DbSet is used for the CodeFirst approach. Which enables a very […]

Read more