Feature feature = new Feature(); feature.vcr_FeaturesName = AddedNode.ToString(); feature.int_ParentId = 0; feature.int_CreatedBy = 1; feature.dtm_CreatedDate = DateTime.Now; FeatureRepository.Add(feature); FeatureRepository.Save();
i am using linq how would i going to get the identity in the code above.
VS 2010 MVC Formatting
1:ASP.NET MVC Membership, Get new UserID
When you call submitchanges() in LINQ to SQL, it refreshes the key; think that's the same for LINQ to entities. ASP.NET MVC 2 - Saving child entities on form submit Your code is wrapping this process although what are those methods doing?. what is the optimal database connection strategyWorking with images in asp.net MVC ViewMasterPage in design mode