¡@

Home 

c# Programming Glossary: dto

Getting ServiceStack to retain type information

http://stackoverflow.com/questions/10750571/getting-servicestack-to-retain-type-information

share improve this question Inheritance in DTOs is a bad idea DTO's should be as self describing as possible.. improve this question Inheritance in DTOs is a bad idea DTO's should be as self describing as possible and by using inheritance.. what the service ultimately returns. Which is why your DTO classes will fail to de serialize properly in most 'standards..

A circular reference was detected while serializing an object of type 'SubSonic.Schema .DatabaseColumn'.

http://stackoverflow.com/questions/1153385/a-circular-reference-was-detected-while-serializing-an-object-of-type-subsonic

How can I easily convert DataReader to List<T>? [duplicate]

http://stackoverflow.com/questions/1464883/how-can-i-easily-convert-datareader-to-listt

of this. You can then write code like class CustomerDTO Field œid public int CustomerId Field œname public string CustomerName.. CustomerName ... using DataReader reader ... List CustomerDTO customers reader.AutoMap CustomerDTO .ToList AutoMap is an.. ... List CustomerDTO customers reader.AutoMap CustomerDTO .ToList AutoMap is an extension method @Stilgar thanks for..

Recommended ServiceStack API Structure

http://stackoverflow.com/questions/15231537/recommended-servicestack-api-structure

I should note that I use pluralization for Service Request DTO names myself to avoid clashing with data models of the same.. could use EventMan.ServiceModel Service Request Response DTOs and DTO types Events.cs Events CreateEvent GetEvent UpdateEvent.. EventMan.ServiceModel Service Request Response DTOs and DTO types Events.cs Events CreateEvent GetEvent UpdateEvent DTOs..

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

You can however project onto an annonymous type or onto a DTO public class ProductDTO public string Name get set Other field.. onto an annonymous type or onto a DTO public class ProductDTO public string Name get set Other field you may need from the.. the Product entity And your method will return a List of DTO's. public List ProductDTO GetProducts int categoryID return..

POCO vs DTO

http://stackoverflow.com/questions/725348/poco-vs-dto

vs DTO POCO Plain Old CLR or better Class Object DTO Data Transfer.. vs DTO POCO Plain Old CLR or better Class Object DTO Data Transfer Object In this post there is a difference but.. frankly most of the blogs I read describe POCO in the way DTO is defined DTOs are simple data containers used for moving data..

Why catch and rethrow Exception in C#?

http://stackoverflow.com/questions/881473/why-catch-and-rethrow-exception-in-c

KB cs datatransferobject.aspx on Serializable DTO's. The article includes this piece of code public static string.. includes this piece of code public static string SerializeDTO DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType.. this piece of code public static string SerializeDTO DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType StringWriter..

?œDo not use Abstract Base class in Design; but in Modeling/Analysis??/a>

http://stackoverflow.com/questions/9470013/do-not-use-abstract-base-class-in-design-but-in-modeling-analysis

KB cs datatransferobject.aspx on Serializable DTO's. The article includes this piece of code public static string.. includes this piece of code public static string SerializeDTO DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType.. this piece of code public static string SerializeDTO DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType StringWriter..

POCO vs DTO

http://stackoverflow.com/questions/725348/poco-vs-dto

this great article about POCO as a lifestyle c# .net poco dto share improve this question A POCO follows the rules of OOP...

servicestack REST API and CORS

http://stackoverflow.com/questions/8211930/servicestack-rest-api-and-cors

HelloService IService public object Any Hello request var dto new HelloResponse Result Hello request.Name return new HttpResult.. Result Hello request.Name return new HttpResult dto Headers Access Control Allow Origin Access Control Allow..

Why catch and rethrow Exception in C#?

http://stackoverflow.com/questions/881473/why-catch-and-rethrow-exception-in-c

this piece of code public static string SerializeDTO DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType StringWriter.. DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType StringWriter sWriter new StringWriter xmlSer.Serialize.. sWriter new StringWriter xmlSer.Serialize sWriter dto return sWriter.ToString catch Exception ex throw ex The rest..

?œDo not use Abstract Base class in Design; but in Modeling/Analysis??/a>

http://stackoverflow.com/questions/9470013/do-not-use-abstract-base-class-in-design-but-in-modeling-analysis

this piece of code public static string SerializeDTO DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType StringWriter.. DTO dto try XmlSerializer xmlSer new XmlSerializer dto.GetType StringWriter sWriter new StringWriter xmlSer.Serialize.. sWriter new StringWriter xmlSer.Serialize sWriter dto return sWriter.ToString catch Exception ex throw ex The rest..

Hows to quick check if data transfer two objects have equal properties in C#?

http://stackoverflow.com/questions/986572/hows-to-quick-check-if-data-transfer-two-objects-have-equal-properties-in-c

property Switching to structs is not an option. c# equals dto share improve this question How about some reflection perhaps..

How do you map a Dto to an existing object instance with nested objects using AutoMapper?

http://stackoverflow.com/questions/3672447/how-do-you-map-a-dto-to-an-existing-object-instance-with-nested-objects-using-au

do you map a Dto to an existing object instance with nested objects using AutoMapper.. with nested objects using AutoMapper I have the following Dto and entity with a nested sub entity. public class Dto public.. Dto and entity with a nested sub entity. public class Dto public string Property get set public string SubProperty get..