Hello.
i got some problems using EF with AutoMapper. =/
for example :
i got 2 related entities ( Customers and Orders )
and theyr DTO classes :
class CustomerDTO
{
public string CustomerID {get;set;}
public string CustomerName {get;set;}
public IList< OrderDTO > Orders {get;set;}
}
class OrderDTO
{
public string OrderID ...
I was looking at the differences between POCO and DTO (It appears that POCO's are dto's with behaviour (methods?))and came across this article by Martin Fowler on the anaemic domain model.
Through lack of understanding, I think I have created one of these anaemic domain models.
In one of my applications I have my business domain entit...
There is some discussion on my team about updating entity data and how best to approach it. This is a security framework and so here are some of the constraints and ideas.
every table in DB has a PK that is a guid, this is required for our multi-node clustering solution. The idea is that we don't want to expose this on an entity to a ...
I have these data transfer objects objects:
public class Report
{
public int Id { get; set; }
public int ProjectId { get; set; }
//and so on for many, many properties.
}
I don't want to write
public bool areEqual(Report a, Report b)
{
if (a.Id != b.Id) return false;
if (a.ProjectId != b.ProjectId) return false;
...
I'm trying to write application using GWT and GAE/J (Google AppEngine with Java). For my application i need to use DTO. In order to convert Pojo into JDO Entities I want to use Dozer library. So when i'm trying to convert object I'm getting following error:
Jun 23, 2009 7:12:30 PM com.google.appengine.tools.development.ApiProxyLocalImpl...
In my Windows Forms app, I two DataGridViews that represent a Master-Detail relationship. The datasource for each is a Data Transfer Object, represented as an IList(of T) -- so DataRelation is out. What is the best way to drive the master-detail grids? Is there a built-in way to do this in .NET or do I have to write my own rebind when...
what is a Data Transfer Object?
In MVC are the model classes DTO, and if not what are the differences and do we need both?
...
Hi there,
simple question really, i was wanting to know what naming conventions anybody puts on there DTO / POCOS ....
I didn't really want to prefix like hungarian notation.. i got away from that!.
But my dtos naming are clashing with my actual returned object names and although they are in a different namespace its still a bit con...
I need to get a collection property populated in a DTO and I'm having trouble finding any information on doing this.
I tried to do it like this:
ICriteria selectCriteria = Session.CreateCriteria<DataRun>()
.SetProjection(Projections.ProjectionList()
.Add(Projections.Property("SomeCollection"), "Collection"))...
Anybody know of a good way to create my dtos for use with Entity Framework (not vs 2010 or v4beta) ... I have seen a few examples with t4 but haven't got any to work.
Anybody suggest the best route for this, i will of course use autoampper to map between my entities and my dtos but i don't want to create my DTOs one by one ... is so muc...
Is there a tool out there that I can point at a Java DTO (Data Transfer Object) and it generates a corresponding Flex/AS Domain Object? Vise-Versa?
I'm using BlazeDS for my DataService over an AMF line.
Thanks.
...
Hi there,
i have been successfully working with linq2sql and the linq DTOs (the classes that are created by linq2sql) ....
I am confused, i have the task of updating an old application and i can see that my DTOs will be used how they should be .... to transport date
I am using the repository pattern so i am passing data from the repos...
I am considering to use DTOs instead of passing around my domain objects. I have read several posts here as well as elsewhere, and i understand there are several approaches to getting this done.
If i only have about 10 domain classes in all, and considering that i want to use DTOs rather than domain objects for consumption in my Views (...
Friends, I am trying to convert DO to DTO using java and looking for automated tool before start writing my own. I just wanted to know if there any free tool available for the same.
...
I've recently overheard people saying that DTOs are an anti-pattern. Can someone please explain why? What are the alternatives?
...
I've been going through the tutorials (specifically ones using Linq-To-Entities) and I understand the basic concepts, however some things are giving me issues.
The tutorials usually involve only simple models and forms that only utilize basic create, update and delete statements. Mine are a little more complicated, and I'm not sure I'm ...
Is it possible to reuse a component mapping in a projection?
Here is the mapping for the Vendor entity:
<class name="Vendor" table="vendor">
...
<property name="Name" column="Name" />
<component name="Address" class="MyProject.Address, MyAssembly" >
<property name="Street" column="street" />
<property na...
Can anyone tell me if its possible to extract the linq2sql generated classes into a separate project in c#? - I presume I can just create the files and then copy them to a new project and add a reference to my Data project?
The problem I have is that I have my UI, Service Layer and Data layer...
Currently the data layer also has the ge...
Okay, I'm accessing the fields of a data row inside a data set using indexers, but let's consider this as just a syntactical feature. Would you go so far and call it a duck typed thing that is reduced to getters and setters, in other words a data transfer object?
...
I'm new to NHibernate (and ORMS) and trying to come to grips with the myriad of different options it presents. For reference, I'm using Fluent NHibernate with seperate business objects which in turn use DTO's purely for data access. My application architecture must support both windows and web "front ends".
My quandry is one of general ...