DDD: Can I have my persistence layer object implement an interface that uses enum, with implicit con

Posted by Maslow on Stack Overflow See other posts from Stack Overflow or by Maslow
Published on 2010-02-16T18:45:03Z Indexed on 2010/04/10 12:53 UTC
Read the original article Hit count: 387

I have a domain interface

public interface ITicket
{
...
TicketWorkflowStatus StatusId{get;set;} // Enum
}

but the linq-to-sql persistance layer on the database wants to use int, can I change it in the dbml so that the local type is TicketWorkflowStatus? What are my options?

© Stack Overflow or respective owner

Related posts about domain-driven-design

Related posts about linq-to-sql