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

Entity Framework 6 - Knowledge Base (KB)

10 results in tag: dto

AutoMapper + Entity Framework ( Entity to DTO and DTO to Entity )

I've got some problems using EF with AutoMapper. =/...for example :...I've got 2 related entities ( Customers and Orders ) and they're DTO classes : ... class CustomerDTO { public string CustomerID {get;set;} public string CustomerName {get;set;} ...
automapper c# dto entity-framework
asked by shkipper

DTO Pattern + Lazy Loading + Entity Framework + ASP.Net MVC + Auto Mapper

Firstly, Sorry For lengthy question but I have to give some underlying information....We are creating an Application which uses ASP.net MVC, JQuery Templates, Entity Framework, WCF and we used POCO as our domain layer. In our application, there is a WCF ...
asp.net-mvc automapper dto entity-framework lazy-loading
asked by marvelTracker

Domain vs DTO vs ViewModel - How and When to use them?

In a Multi-layer project with Domain layer (DL)/Business (Service) Layer (BL)/Presentation Layer (PL), what is the best approach to deliver Entities to the Presentation Layer?...DO => Domain Object; DTO = Domain Transfer Object; VM => View Model; V => Vie...
asp.net-mvc automapper dto entity-framework viewmodel
asked by Patrick

Mapping entities to DTOs without duplicated code

I'm trying to get my head around this issue where I am using the Entity Framework (6) in an N-tier application. Since data from the repository (which contains all communication with the database) should be used in a higher tier (the UI, services etc), I n...
c# dto entity-framework entity-framework-6
asked by Bo Mortensen

Can Automapper use an entity's navigation properties to pull values from related entities

Is Automapper able to drill down into an entityy navigation properties to map to a DTO class? Below is what I am doing to map results from an Entity Framework query to a DTO:... public List<ProductRequestDetailDto> GetProductRequestExtendedDetai...
automapper c# dto entity-framework-6 linq-to-entities
asked by Robertcode

How to work with DTOs in Controller of WebAPI?

I'm a bit confused how to use DTOs in my WebAPI controllers. I'm using the Database first concept of Entity Framework. The following Entity Data Model was generated:...//Generated class by EDM: public partial class Address { [System.Diagnostic...
ado.net-entity-data-model asp.net-web-api c# dto entity-framework-6
asked by yuro

How mapping many to many with automapper

I have many to many relation for tables functions and roles and I have association table RolesFunctions. In the RolesFunctions I have row id ( IdFunctions and IdRoles Both its a prime key). ...the problem... is when I map function with functionDTO and rol...
asp.net-mvc automapper c# dto entity-framework-6
asked by AddRock

Changing the output DTO (return value) of the GetAll method in an AsyncCrudAppService

I'm using ABP's ...AsyncCrudAppService... in my AppServices. Here's my interface:...public interface IAssetRequisitionAppService : IAsyncCrudAppService <AssetRequisitionDto, Guid, GetAllInput, AssetRequisitionDto, AssetRequisitionDto, AssetRequisition...
application-layer asp.net-mvc aspnetboilerplate dto entity-framework-6
asked by Emre Can Serteli

How do I restrict the number of columns used in an INSERT when using EntityFramework?

Let's say you have an Entity with 26 columns. It matches the corresponding table which also has 26 columns....From time to time I would like to be able to send fewer columns in an INSERT (Add) operation than are specified in the entity because of certain...
dto entity-framework entity-framework-6 entity-framework-core
asked by ezG

Disable deletion for records with dependencies

I want to delete records from my database only which don't have any dependencies. ...eg...:- ...Company... Table has ...Company Pk... primary key and it is the foreign key for ...department... table and ...location... table. So the system should not allow...
c# dto entity-framework-6 model-view-controller
asked by Samadhi Upeshala

Page 1 of 1
  • 1

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

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!