c# Programming Glossary: entities
Problem with converting int to string in Linq to entities http://stackoverflow.com/questions/1066760/problem-with-converting-int-to-string-in-linq-to-entities with converting int to string in Linq to entities var items from c in contacts select new ListItem Value c.ContactId.. Throws exception ToString is not supported in linq to entities. Text c.Name Is there anyway I can achieve this Note that.. unable to get used to C#'s strictness c# asp.net linq to entities tostring share improve this question With EF v4 you can use..
How can I decode HTML characters in C#? http://stackoverflow.com/questions/122641/how-can-i-decode-html-characters-in-c in C# I have email addresses encoded with HTML character entities. Is there anything in .NET that can convert them to plain strings..
When should I dispose of a data context http://stackoverflow.com/questions/389822/when-should-i-dispose-of-a-data-context forces the DataContext to dump its cache of materialized entities so that a single cached entity will not accidentally keep alive.. single cached entity will not accidentally keep alive all entities materialized through that DataContext which would otherwise..
What is the purpose of self tracking entities? http://stackoverflow.com/questions/5091974/what-is-the-purpose-of-self-tracking-entities is the purpose of self tracking entities I've been reading about self tracking entities in .net and.. tracking entities I've been reading about self tracking entities in .net and how they can be generated from a .edmx file. The.. that I'm struggling to understand is what generating these entities gives you over the basic EF entities Also some people have mentioned..
Fastest Way of Inserting in Entity Framework http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework return context I have a test program which inserts 560.000 entities 9 scalar properties no navigation properties into the DB. With.. context from all entites SaveChanges doesn't do that the entities are still attached to the context in state Unchanged . It is.. in state Unchanged . It is the growing size of attached entities in the context what slows down the insertion step by step. So..
Create code first, many to many, with additional fields in association table http://stackoverflow.com/questions/7050404/create-code-first-many-to-many-with-additional-fields-in-association-table scenes. Edit Just for fun a few examples more how to add entities and relationships and how to delete them in this model 1 Create..
How to use HTML Agility pack http://stackoverflow.com/questions/846994/how-to-use-html-agility-pack is another useful method for processing html entities correctly. thanks Matthew HtmlDocument and HtmlNode are the..
How to do a Bulk Insert — Linq to Entities http://stackoverflow.com/questions/1609153/how-to-do-a-bulk-insert-linq-to-entities to do a Bulk Insert &mdash Linq to Entities I cannot find any examples on how to do a Bulk batch insert.. examples on how to do a Bulk batch insert using Linq to Entities. Do you guys know how to do a Bulk Insert c# asp.net mvc entity..
delegate keyword vs. lambda notation [duplicate] http://stackoverflow.com/questions/299703/delegate-keyword-vs-lambda-notation then translate that tree into executable T SQL. Linq to Entities will produce an expression tree that represents the query and..
linq to entities case sensitive comparison http://stackoverflow.com/questions/3843060/linq-to-entities-case-sensitive-comparison this question That's because you are using LINQ To Entities which is ultimately convert your Lambda Expressions into SQL.. ThingamaBob .ToTraceString When you create a LINQ to Entities query LINQ to Entities leverages the LINQ parser to begin processing.. When you create a LINQ to Entities query LINQ to Entities leverages the LINQ parser to begin processing the query and..
What is Linq and what does it do? [closed] http://stackoverflow.com/questions/471502/what-is-linq-and-what-does-it-do technology built by the C# team. It just works. Linq To Entities examine the System.Data.Objects namespace. Especially note the..
EF4 Code First: how to add a relationship without adding a navigation property http://stackoverflow.com/questions/5217441/ef4-code-first-how-to-add-a-relationship-without-adding-a-navigation-property public class TestContext DbContext public TestContext base Entities protected override void OnModelCreating System.Data.Entity.ModelConfiguration.ModelBuilder..
The entity cannot be constructed in a LINQ to Entities query http://stackoverflow.com/questions/5325797/the-entity-cannot-be-constructed-in-a-linq-to-entities-query entity cannot be constructed in a LINQ to Entities query There is an entity type called product that is generated.. type Shop.Product cannot be constructed in a LINQ to Entities query var products productRepository.GetProducts 1 .Tolist But..
EF Including Other Entities (Generic Repository pattern) http://stackoverflow.com/questions/5376421/ef-including-other-entities-generic-repository-pattern Including Other Entities Generic Repository pattern I am using the Generic Repository.. achieve public IQueryable GetQueryWithIncludes string otherEntities var entityName GetEntityName TEntity now loop over the otherEntities.. entityName GetEntityName TEntity now loop over the otherEntities array and append Include extensions to the query so inside the..
LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression http://stackoverflow.com/questions/5899683/linq-to-entities-does-not-recognize-the-method-system-string-tostring-method to Entities does not recognize the method 'System.String ToString ' method.. var page in pages it throws an exception saying LINQ to Entities does not recognize the method 'System.String ToString ' method..
Implementing Audit Log / Change History with MVC & Entity Framework http://stackoverflow.com/questions/6867459/implementing-audit-log-change-history-with-mvc-entity-framework now I get an exception with that code public partial class Entities public override int SaveChanges SaveOptions options DetectChanges.. SaveChanges SaveOptions options DetectChanges var modifiedEntities ObjectStateManager.GetObjectStateEntries EntityState.Modified.. EntityState.Modified foreach var entry in modifiedEntities var modifiedProps ObjectStateManager.GetObjectStateEntry entry..
Bulk-deleting in LINQ to Entities http://stackoverflow.com/questions/869209/bulk-deleting-in-linq-to-entities deleting in LINQ to Entities Is there any way to bulk delete a bunch of objects matching.. bunch of objects matching a given query in LINQ or LINQ to Entities The only references that I can find are outdated and it seems..
|