EF
文章平均质量分 73
jameszhouhvs
.NET: WinForm > ASP.NET > MVC > Silverlight > WP > Xamarin
展开
-
EF6 Database First (DbContext) - Change Schema at runtime
Problem:There are two SQL databases (dev and live) with on Azure which has identical table structures but different table schema name. We need a way to change the schema name at runtime thus we can ma原创 2015-11-19 20:22:49 · 2830 阅读 · 0 评论 -
LINK - EF6 Update/Insert/Delete model object from outside of DbContext
LINK - https://msdn.microsoft.com/en-us/data/jj592676.aspxpublic void InsertOrUpdate(Blog blog) { using (var context = new BloggingContext()) { context.Entry(blog).State = blog.BlogId原创 2015-11-24 11:16:58 · 2701 阅读 · 0 评论