3
Shouts

Some important attributes in EFCodeFirst

posted by http://jalpesh.blogspot.com/http://jalpesh.blogspot.com/ 678 days, 20 hours, 19 minutes ago
Friday, July 15, 2011 8:55:47 AM GMT

In today’s post I am going to explain some of the important attributes in EFCodeFirst. Whey you do scaffolding with ASP.NET MVC this all attributes are where much important. So Let’s explore all the attributes.Key Attribute: When you put this attribute in the class it tell that this property is part of the primary key and If you use code first when its create table based on this entity then it will be a part of primary key of table. Here is the sample example of that.[Key] public int ArticleId { get; s...

category: Web Dev | clicked: 2 | | source: jalpesh.blogspot.com | show counter code
tags: EFCodefirst, ASP.NET

No comments yet, be the first one to post comment.

To post your comment please login or signup