linq-to-sql
Random weighting in C#
I\'m creating a game in C#, and a crucial part of the game is randomness. It\'s essentially a wrestling simulator, where \'moves\' are selected on 开发者_JS百科a table depending on a number of factors[详细]
2023-04-07 11:02 分类:问答Linq-to-sql Delete a record with FK constraints
Is it possible to SubmitChanges and ignore deletes that cause Foreign Key constraint errors? Say I have object A and B. B\'s Primary Key is a Foreign Key in A. Now I change a record A in which I rep[详细]
2023-04-07 09:51 分类:问答Invalid return type for a mapped stored procedure
Have a very large ASP.NET application I\'m creating Automated UI test cases for, part of the final part of this test case is to remove the user it just created (so we keep the same details every singl[详细]
2023-04-07 09:12 分类:问答Advanced Linq sorting C#
I have an IQueryable that has a list of pages. I want to do: Pages.OrderByDescending(o => CalculateSort(o.page));[详细]
2023-04-07 06:26 分类:问答Linq to SQL atomic set of operations
I would like to ensure that var a has not cha开发者_JS百科nged between retrieving it and performing the update on var b.[详细]
2023-04-06 21:14 分类:问答LINQ: When to use Compiled Queries?
I\'d like some expe开发者_Go百科rt advice on this. I\'ve used compiled queries before, but for this particular case, i\'m not sure whether it\'s appropriate.[详细]
2023-04-06 19:23 分类:问答Listing data from 3 different but associated table into one dropdown (using linq-to-sql and mvc3)
i ve 3 tables in my database : item,group,groupdetail; in table item there are 2 fields : id,item_name (bigint\"long\",string)[详细]
2023-04-06 18:27 分类:问答C# Linq is removing a value from my entity
So, in a desperate attempt to wrangle EntityFramework into being usable. I am here.. private MyEntity Update(MyEntity orig)[详细]
2023-04-06 14:36 分类:问答Bug in generated LINQ to SQL class?
I have two tables: Budgets and Consultants. There is a 1 to 0..1 relation between Budgets and Consultants: a Budget has a Consultant and a Consultant can have a Budget.[详细]
2023-04-06 14:07 分类:问答LINQ to SQL vs. Enterprise Library
I have 1 million records inserted per day. My front end is C# 4.0 and my back end is MS SQL Server 2008 R2.[详细]
2023-04-06 12:04 分类:问答