datacontext
Data contexts - Linq to SQL
No one has taught me how to use these, and I can\'t find much on how I should be using them 开发者_如何学Goproperly.[详细]
2023-02-23 23:24 分类:问答Specify ConnectionString for MVC DataContext globally
I have an MVC3 Application that allows a user to choose the database they want to use on initial login.[详细]
2023-02-23 13:23 分类:问答How to group select new GetTable<>?
DataContext db = new DataContext(conString); var dvd = db.GetTable<DvdList>(); var query = from b in dvd[详细]
2023-02-22 09:59 分类:问答Entity framework data context not in sync with database?
So, here is the situation - I insert an item in the database calling the AddtoObject() and then call SaveChanges().[详细]
2023-02-20 13:18 分类:问答Passing DataContext to a User Control
I have a page that contains a dataset: protected void Page_Load(object sender, EventArgs e) { MyDefinedDataContext mydatacont = new MyDefinedDataContext();[详细]
2023-02-20 11:55 分类:问答silverlight datacontext, repeats all the past commands/action each time a new action is performed on it
a datacontext defined in a module(domain services ado.net ria) a page having add/delete methods whenever any method is executed, it is found that all the previous actions (NEW RECORD ADDITION and DEL[详细]
2023-02-20 03:59 分类:问答Working with Cross Context Joins in LINQ-to-SQL
Initially I had written this query using LINQ-to-SQL var result = from w in PatternDataContext.Windows[详细]
2023-02-19 11:27 分类:问答insert in one DataContext, submit in another
I have two System.Data.Linq.DataContext instances of same type. There is a table Table1 in DataContext. I add an object in first DataContext instance to the Table1 using the InsertOnSubmit method and[详细]
2023-02-18 23:44 分类:问答Why Entity Framework V1 hits DB several times with SELECT while entities are already loaded?
Lets say I have a Playlist class with some referenced classes. The playlist entity collection is pla开发者_运维问答ced into the data context wrapper:[详细]
2023-02-18 19:50 分类:问答c# DataContext.SubmitChanges() not updating database
Can someone explain why the following code fails to update the database or what else I can do to troubleshoot?[详细]
2023-02-18 06:59 分类:问答