¡@

Home 

c# Programming Glossary: queries

LINQ query on a DataTable

http://stackoverflow.com/questions/10855/linq-query-on-a-datatable

object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example var results.. to get something like this working I'm amazed that LINQ queries are not allowed on DataTables c# .net linq .net 3.5 share..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

to maintain don't need to run a SQL script to update queries Easier to port to another DB no procs to port Advantages for..

Are there good reasons not to use an ORM? [closed]

http://stackoverflow.com/questions/194147/are-there-good-reasons-not-to-use-an-orm

One can just build one ™s own data access objects with SQL queries and copy those queries out of Microsoft SQL Server Management.. ™s own data access objects with SQL queries and copy those queries out of Microsoft SQL Server Management Studio. Debugging an.. gets renamed. Updating numerous SELECT INSERT and UPDATE queries vs. updating the mapping config and possibly refactoring the..

LINQ - Fluent and Query Expression - Is there any benefit(s) of one over other? [closed]

http://stackoverflow.com/questions/214500/linq-fluent-and-query-expression-is-there-any-benefits-of-one-over-other

gamut of query operators and is more concise with simple queries. You can get the best of both worlds by mixing query and method.. query and method syntax. This is often done in LINQ to SQL queries var query from c in db.Customers let totalSpend c.Purchases.Sum..

IEnumerable vs List - What to Use? How do they work?

http://stackoverflow.com/questions/3628425/ienumerable-vs-list-what-to-use-how-do-they-work

above Leopards and Hyenas get converted into single SQL queries each and the database only returns the rows that are relevant...

Entity Framework 4 - AddObject vs Attach

http://stackoverflow.com/questions/3920111/entity-framework-4-addobject-vs-attach

In my above example for modifying an existing Person two queries are actually being executed. One to retrieve the Person .SingleOrDefault..

Dynamic LINQ OrderBy on IEnumerable<T>

http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

trees for ORMs etc can't really represent dynamic queries MemberExpression doesn't support it . But here's a way to do..

Is this thread.abort() normal and safe?

http://stackoverflow.com/questions/421389/is-this-thread-abort-normal-and-safe

a custom autocomplete control when the user press a key it queries the database server using Remoting on another thread. When the.. object internal void DoWork lock o the actual code that queries the database var ds LookupValuesDelegate LookupTextEventArgs.. object internal void DoWork lock o the actual code that queries the database var ds LookupValuesDelegate LookupTextEventArgs..

How do parameterized queries help against SQL injection?

http://stackoverflow.com/questions/5468425/how-do-parameterized-queries-help-against-sql-injection

do parameterized queries help against SQL injection In both queries 1 and 2 the text.. parameterized queries help against SQL injection In both queries 1 and 2 the text from the textbox is inserted into the database... query share improve this question Parameterized queries do proper substitution of arguments prior to running the SQL..

LINQ Expression to return Property value?

http://stackoverflow.com/questions/567963/linq-expression-to-return-property-value

to SQL from a local list. SQL Server 2005 at least limits queries to 2100 parameters and I'd like to select more records than..

.NET Events for Process executable start

http://stackoverflow.com/questions/848618/net-events-for-process-executable-start

issues. You could also change the polling value in the queries if you need the event to be raised more quickly after the process..

Reliable method to get machine's MAC address in C#

http://stackoverflow.com/questions/850650/reliable-method-to-get-machines-mac-address-in-c-sharp

a foreign language default. Many of the C# commands and OS queries don't work across OS. Any ideas I have been scraping the output..

Conditional Linq Queries

http://stackoverflow.com/questions/11194/conditional-linq-queries

Linq Queries We're working on a Log Viewer. The use will have the option..

Does foreach execute the query only once?

http://stackoverflow.com/questions/13250561/does-foreach-execute-the-query-only-once

loop Given this example Taken from Introduction to LINQ Queries C# on MSDN The Three Parts of a LINQ Query 1. Data source. int..

How to deal with XML in C#

http://stackoverflow.com/questions/220867/how-to-deal-with-xml-in-c-sharp

however is you have the advantage of performing Linq Queries to select the exact data you need. With the addition of object..

Generic class for performing mass-parallel queries. Feedback?

http://stackoverflow.com/questions/4535740/generic-class-for-performing-mass-parallel-queries-feedback

bool preserve_order m_preserve_order preserve_order this.Queries new List CloudTableQuery T 1000 public void AddQuery IQueryable.. T query var uri data_query.RequestUri required this.Queries.Add new CloudTableQuery T data_query summary Blocking but still.. if m_preserve_order true this.Items new List T Queries.Count for var i 0 i Queries.Count i this.Items.Add new T ..

How can I prevent EF “The context cannot be used while the model is being created” errors?

http://stackoverflow.com/questions/6099781/how-can-i-prevent-ef-the-context-cannot-be-used-while-the-model-is-being-create

source Expression`1 predicate at MyApp.DomainModel.Queries.Users.UserByEmailQuery.Execute in C Users KallDrexx Documents.. Users KallDrexx Documents Projects MyApp MyApp.DomainModel Queries Users UserByEmailQuery.cs line 44 at MyApp.Infrastructure.MyAppMembershipProvider.GetUser..

Selecting on Sub Queries in NHibernate with Critieria API

http://stackoverflow.com/questions/6541229/selecting-on-sub-queries-in-nhibernate-with-critieria-api

on Sub Queries in NHibernate with Critieria API So I have a SQL query with..