datacontext
Setting DataLoadOptions for DataContext in F#
Is it possible to set the DataLoadOptions on a data context in F#? S开发者_JAVA技巧o far I have had no luck because the DataLoadOptions.LoadWith() takes a System.Linq.Expressions.LambdaExpression whic[详细]
2023-02-18 06:09 分类:问答How to hide a control if the underlying DataContext is null?
I have an object in my view model that has a bunch of properties, some of them will occasionally be null. I don\'t want to just show some controls if these particular controls are null. How would I go[详细]
2023-02-17 16:15 分类:问答How to tell if LinqToSql DataContext has previously returned results
When setting the LoadOptions property on a LinqToSql DataContext, if the 开发者_开发知识库context has already returned results from another query, the exception \"Setting load options is not allowed a[详细]
2023-02-16 09:53 分类:问答Managing a Linq to SQL Datacontext in a WCF service using a DataContextFactory
I\'ve been using Rick Strahl\'s DataContextFactory code (Linq to SQL DataContext Lifetime Management) in a data layer consumed by an ASP.Net application. It works great because the current datacontext[详细]
2023-02-16 02:16 分类:问答ExecuteReader requires open Connection. Current state: Broken
I\'m using StructureMap to inject a LINQ data context (DB class) into my repositories for read queries on a HTTP-context basis, which are queried via a service layer. Everything works fine for a few h[详细]
2023-02-15 15:51 分类:问答What does LINQ-to-SQL Table<T>.Attach do?
What exactly does the LINQ-to-SQL method Table<T>.Attach() and Table<T>.AttachAll() and what is an example/situation for their proper usage?[详细]
2023-02-15 13:51 分类:问答Can I have a dynamicly updated dataContext?
I use DataContexts for 90% of my data access. But if, for instance, User1 modifies a record and User2 query the DataContext, he won\'t see the modifications. So I recreate my DataContext EVERY time I[详细]
2023-02-15 01:07 分类:问答Loading large graphs and detaching them
I am developing an application that uses Entity Framework and WPF with MVVM design pattern.I have a number of entities, but to keep it simple, lets work with just a subset of them.Companies which can[详细]
2023-02-13 22:06 分类:问答Multiple/Single *.edmx files per database
I have a project that interacts with a datab开发者_开发百科ase through ADO.net Data Services. The database is large (almost 150 tables with dependencies). The project started a few years ago and there[详细]
2023-02-12 16:51 分类:问答How to lock a SQL record with LinqToSql?
I\'m using a LinqToSql DataContext and I want to 开发者_如何学Clock a record for being opened in write mode.Meaning while one user in Hong Kong has a record open in write mode, another user in France[详细]
2023-02-12 07:01 分类:问答