zzz projects Entity Framework 6 EF 6
Home EF Core 5 Articles Knowledge Base Online Examples
  • Home
  • EF Core 5
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

English (en) Français (fr) Español (es) Italiano (it) Deutsch (de) русский (ru) 한국어 (ko) 日本語 (ja) 中文简体 (zh-CN) 中文繁體 (zh-TW)

963 results for: in tag: asp.net-mvc

How to create foreign key relationships with the Entity Framework?

I want to create a new row in my database on a table that has a couple of foreign key relationships and I haven't been able to get a handle on what order and what calls need to be made. This is what I have so far:...db.Models.Order order = DB.Models.Order...
asp.net-mvc entity-framework foreign-key-relationship
asked by Jared

How do I delete an object from an Entity Framework model without first loading it?

I am quite sure I've seen the answer to this question somewhere, but as I couldn't find it with a couple of searches on SO or google, I ask it again anyway......In Entity Framework, the only way to delete a data object seems to be ...MyEntityModel ent = n...
asp.net-mvc entity-framework linq-to-entities
asked by Tomas Aschan

Entity Framework + SQLite deployment

I have a ASP.NET MVC app that is using SQLite database through Entity Framework. Everything works on VS 2008's local development webserver....However, deploying the web app to my service provider causes this error:...[ArgumentException: Unable to find the...
asp.net-mvc entity-framework sqlite system.data.sqlite
asked by Pompair

Can an ASP.NET MVC View use a Model from a different project?

I've got an ADO.NET Entity Framework class called Node in a WPF project. I want to use it in a different ASP.NET MVC project within the same solution....My Node controller:...Public Class NodeController Inherits System.Web.Mvc.Controller Functio...
asp.net-mvc entity-framework
asked by Zack Peterson

Using the repository pattern with Entity Framework (mvc storefront)

Can anyone give a helping hand? I've been watching the videos for the MVC storefront and have created my own website using these techniques i.e. DDD, Repository pattern but I wish to use Entity Framework....In the Interfaces it returns IQueryable but with...
asp.net asp.net-mvc domain-driven-design entity entity-framework
asked by Mark Smith

Field max length in Entity framework

I need to put a max length on my test field on my Views using ASP.NET MVC with the Entity Framework and I can't find how to get the max length of a varchar field....Is there an easy way to get that, or any other property of a database field
asp.net-mvc entity-framework
asked by moi_meme

EntityKey and ApplyPropertyChanges()

I need to set an EntityObject's EntityKey. I know its type and its id value. I don't want to query the database unnecessarily....This works......// // POST: /Department/Edit/5 [AcceptVerbs(HttpVerbs.Post)] public ActionResult Edit(Guid id, Department Mo...
.net asp.net-mvc c# entity-framework
asked by Zack Peterson

Implementing a Search Box using ASP.NET MVC, SQL Server, Entity Framework

I have no experience building a search solution, but I'd like to have a search box within my solution and I don't know where to even begin. Are there cool SQL Server tricks that I can use to make my search solution performant (I'm using a hosted SQL 2008...
asp.net asp.net-mvc entity-framework search
asked by Whozumommy

Looking for examples of ASP.NET MVC applications with the Entity Framework

Are there any open-source examples of ASP.NET MVC applications that use the Entity Framework? I have found ...Nerd Dinner... to be helpful but it is using Linq to SQL....I am trying to use the Entity Framework in a strongly-typed ASP.NET MVC project and ...
asp.net-mvc entity-framework
asked by YeahStu

Serialize Entity Framework Object using Json.Net

How do I serialize entity framework object into JavaScript Object (JSON)? I tried using ...JSON.NET... but I am getting the following exception when I try to serialize it. ...Exception: Newtonsoft.Json.JsonSerializationException, Message="Self referencing...
asp.net-mvc entity-framework javascript json.net
asked by Hitesh

Posttorial: ASP.NET MVC, Entity Framework and LINQ video tutorials - Including MIX09, PDC, TechED

EDIT:...During this post I started searching on video tutorials on ASP.NET MVC, EF and LINQ and found some very useful links which I shared here. As I believe videos are more interactive and easier to learn from. Hope, they'll help....Guys, pl...
asp.net asp.net-mvc c# entity-framework linq
asked by Ramiz Uddin

Best practice entity validation in ASP.NET MVC & ADO.NET Entity Framework

i am using ASP.NET MVC & ADO.NET Entity Framework in a project. I want to add validation logic to my entities via partial classes. It works similar like shown in the ...NerdDinner.com ASP.NET MVC Application... which is using LINQ2SQL. The main difference...
.net asp.net-mvc entity-framework validation
asked by Alexander

Entity Framework to multiple databases (same schema) at runtime?

First of all, let me state I'm very new to EF. With that said, here's my dilemma:...There will be an ASP.NET App migrated to ASP.NET MVC. I would like to utilize EF for this. There is one main database which stores "client information". Apart from that, e...
asp.net asp.net-mvc entity-framework
asked by Kevin

Using Microsoft Data Entity Framework with Microsoft MVC on Mono 2.4

I'm using Mono 2.4 on the Ubiquity web hosting service....I created a simple MVC tutioal applciation, linked ...here..., and verified that it worked using all Microsoft tools. ...Next, the application was updated to point to a MySQL server database runnin...
asp.net-mvc entity-framework mono
asked by Allen

Is the combination of ADO.NET Entity Framework and ASP.MVC wrong by any chance?

I have one solution with three projects. ...DomainModel (C# Library with ADO.NET Entity Framework)...DomainModelTest (Unit Testing for Business Logic)...WebApp (Using DomainModel)...For some reason, I cannot even bring the view if I pass any of the object...
asp.net-mvc c# entity-framework
asked by Geo

How to do a Bulk Insert -- Linq to Entities

I cannot find any examples on how to do a Bulk/batch insert using Linq to Entities. Do you guys know how to do a Bulk Insert?
asp.net-mvc c# entity-framework linq-to-entities
asked by Luke101

Entity Framework - Select specific columns and return strongly typed without losing cast

I'm trying to do something similar to ...this post... where I don't pull back all columns from a particular entity, however my framework makes use of inheritence and I lose scope of the entity type after it's been cast to an anonymous type. ...The structu...
asp.net-mvc entity-framework inheritance linq linq-to-sql
asked by XVargas

The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value

I have an ASP.NET MVC application where I am editing an existing database to update a paticular field, ...DateTime.... My database has 4 fields, two of which are ...DateCreated... and ...DateModified.... When I try to update the field, I want to keep ...D...
asp.net-mvc datetime entity-framework
asked by Anthony Forloney

Custom validation with Data annotations

I'm using data annotations to check data that's being entered, but I'm stuck when it comes to more custom way to validate data....I need to run queries against database to see if stuff exists there or not, and then report back to user if a "custom db-chec...
asp.net-mvc data-annotations entity-framework
asked by Lasse Edsvik

Entity Framework, AutoMapper, handling entity updates

I just started using the Entity Framework 1.0 recently and believe I am beginning to feel the pains everyone is talking about. I'm trying to use best practices so I have a set of DTO that get mapped to and from my Entities via AutoMapper....The real catch...
asp.net-mvc automapper c# entity-framework
asked by jason

Page 1 of 49
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • »
  • »»

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

Try for free now