I am trying to create LinqToSql classes based on this article http://msdn.microsoft.com/en-us/library/bb425822.aspx
I need to run a stored procedure on SQL Server, using LINQ, and throw an exception if it returns any rows. The following code works, although the foreach loop does not communicate my intent well enoug
Say I have a drop down list i开发者_运维问答n asp.net webforms that gets filled with the same data everytime for example.
i m using Linq to SQl for my project, i tried all CRUD operations (Create, Delete, Edit, details) its working, but how to p开发者_开发知识库erform validation, means adding Required , Range, and other
Using Linq to Sql how do I group the following table (entidadeProdutosFornecedores) and return fields from N tables ?
Lets say I wanted to make a post request to update the status of a house, ideally this data should be in some sort of service layer, typically this involves
DataClassesDataContext dc = new DataClassesDataContext(); private string GetPropertyCompany() { var res=from b in dc.Tbl1 select b;
I am experiencing exactly this problem (and am in exactly the same world of pain): ChangeConflictException in Linq to Sql update
In our application, during save operation we are data to almost 15 child tables. When some error occurred, we have data discrepancy in tables. So we decided to use TransactionScope. When we use that i
I have a LINQ query written to pull at least one row from a datatable as follows: var generalQuery = from contact in contacts.AsEnumerable().DefaultIfEmpty()