chris.sano | 18 Aug 21:09

Sample DDD projects in C#?

Does anyone know where I can find a sample C# project that exercises 
different DDD concepts and patterns?

Thanks!

------------------------------------

Angel Java Lopez | 19 Aug 22:53

Re: Sample DDD projects in C#?

Hi people!
Chris, there are examples in the source code of the books:
 
 
(this is a forthcoming book, not source yet)
 
BTW, I´m generating code for DDD/.NET/Nhibernate or Java/Hibernate (simple code, not full DDD) using a code generation tool, more info and examples at:
 
Angel "Java" Lopez
 


 
On Mon, Aug 18, 2008 at 4:11 PM, chris.sano <csano32 <at> gmail.com> wrote:

Does anyone know where I can find a sample C# project that exercises
different DDD concepts and patterns?

Thanks!


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Greg Young | 20 Aug 00:20
Gravatar

Re: Sample DDD projects in C#?

This looks a whole lot more like MDA than DDD (creating "models" in
xml then generating code models off of them) ...

snip ...
<Project>
  <Name>AjOmar</Name>
  <Description>Example AjOmar for (N)Hibernate</Description>
  <Prefix>AjOm</Prefix>
  <Domain>com.ajomar</Domain>
  <CompanyName>ajomar</CompanyName>
  <Model>
<Entities>
<Entity Source="Entities/Client.xml"/>
  <Entity Source="Entities/Company.xml"/>

<Entity>
<Name>User</Name>
  <Description>User Entity</Description>
  <SetName>Users</SetName>
  <Descriptor>User</Descriptor>
  <SetDescriptor>Users</SetDescriptor>
  <SqlTable>users</SqlTable>
  <Inherits>Client</Inherits>
  <Properties>  <Property>
  <Name>FirstName</Name>
  <Type>Text</Type>
  <SqlType>varchar(200)</SqlType>

etc

You also mention that its "Simple DDD" could you elaborate a bit on
what "Simple DDD" is as opposed to DDD?

Cheers,

Greg

On Tue, Aug 19, 2008 at 1:53 PM, Angel Java Lopez <ajlopez2000 <at> gmail.com> wrote:
> Hi people!
> Chris, there are examples in the source code of the books:
>
> http://www.wrox.com/WileyCDA/WroxTitle/-NET-Domain-Driven-Design-with-C-Problem-Design-Solution.productCd-0470147563.html
>
> http://www.wrox.com/WileyCDA/WroxTitle/-NET-3-5-Wrox-Box-Professional-ASP-NET-3-5-Professional-C-2008-Professional-LINQ-NET-Domain-Driven-Design-with-C-.productCd-0470387998.html
> (this is a forthcoming book, not source yet)
>
> BTW, I´m generating code for DDD/.NET/Nhibernate or Java/Hibernate (simple
> code, not full DDD) using a code generation tool, more info and examples at:
> http://ajlopez.wordpress.com/category/ajgenesis
>
> Angel "Java" Lopez
> http://www.ajlopez.com/en
> http://ajlopez.wordpress.com
>
>
>
> On Mon, Aug 18, 2008 at 4:11 PM, chris.sano <csano32 <at> gmail.com> wrote:
>>
>> Does anyone know where I can find a sample C# project that exercises
>> different DDD concepts and patterns?
>>
>> Thanks!
>>
>
> 

--

-- 
It is the mark of an educated mind to be able to entertain a thought
without accepting it.

------------------------------------

Angel Java Lopez | 20 Aug 16:01

Re: Sample DDD projects in C#?

Hi people!
 
Greg, thanks for reviewing that example; yes, is more like MDA, but the code generated in that example tries to implement DDD ideas. I described it as "Simple DDD", only to stress that is not a full implementation of DDD (no value objects, no aggregates yet). The excerpt you paste, is part of a model I use to generate, not only DDD, but examples of Business Entities/Business Components "a la classic Microsoft", in other examples. The term "Entity" is not related to entity in DDD.
 
The model is free, you can put in the model anything you want. My idea is to extend it to a more DDD-oriented model, or to have the enough "intelligence" put in the transformation tasks, to infer the appropiate mapping to DDD, that is:
 
- I could add the "concept" Aggregate in the XML model (as an attribute or element)
Or
- The transformation tasks read the model, and infer "that entity is an aggregate root, this one is a ... ", and so on...
 
BTW, I enjoy your blog, and your twitter too!
 
Angel "Java" Lopez
http://ajlopez.wordpress.com (Anglish, Angel's English)

 
On Tue, Aug 19, 2008 at 7:20 PM, Greg Young <gregoryyoung1 <at> gmail.com> wrote:

This looks a whole lot more like MDA than DDD (creating "models" in
xml then generating code models off of them) ...

snip ...
<Project>
<Name>AjOmar</Name>
<Description>Example AjOmar for (N)Hibernate</Description>
<Prefix>AjOm</Prefix>
<Domain>com.ajomar</Domain>
<CompanyName>ajomar</CompanyName>
<Model>
<Entities>
<Entity Source="Entities/Client.xml"/>
<Entity Source="Entities/Company.xml"/>

<Entity>
<Name>User</Name>
<Description>User Entity</Description>
<SetName>Users</SetName>
<Descriptor>User</Descriptor>
<SetDescriptor>Users</SetDescriptor>
<SqlTable>users</SqlTable>
<Inherits>Client</Inherits>
<Properties> <Property>
<Name>FirstName</Name>
<Type>Text</Type>
<SqlType>varchar(200)</SqlType>

etc

You also mention that its "Simple DDD" could you elaborate a bit on
what "Simple DDD" is as opposed to DDD?

Cheers,

Greg



On Tue, Aug 19, 2008 at 1:53 PM, Angel Java Lopez <ajlopez2000 <at> gmail.com> wrote:
> Hi people!
> Chris, there are examples in the source code of the books:
>
> http://www.wrox.com/WileyCDA/WroxTitle/-NET-Domain-Driven-Design-with-C-Problem-Design-Solution.productCd-0470147563.html
>
> http://www.wrox.com/WileyCDA/WroxTitle/-NET-3-5-Wrox-Box-Professional-ASP-NET-3-5-Professional-C-2008-Professional-LINQ-NET-Domain-Driven-Design-with-C-.productCd-0470387998.html
> (this is a forthcoming book, not source yet)
>
> BTW, I´m generating code for DDD/.NET/Nhibernate or Java/Hibernate (simple
> code, not full DDD) using a code generation tool, more info and examples at:
> http://ajlopez.wordpress.com/category/ajgenesis
>
> Angel "Java" Lopez
> http://www.ajlopez.com/en
> http://ajlopez.wordpress.com
>
>
>
> On Mon, Aug 18, 2008 at 4:11 PM, chris.sano <csano32 <at> gmail.com> wrote:
>>
>> Does anyone know where I can find a sample C# project that exercises
>> different DDD concepts and patterns?
>>
>> Thanks!
>>
>
>

--
It is the mark of an educated mind to be able to entertain a thought
without accepting it.


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
moffdub | 20 Aug 03:04
Favicon

Re: Sample DDD projects in C#?

Every couple of weeks, I'll come up with a DDD question or issue that
bugs me enough to the point where I'll end up creating a quickie
skeleton of a .NET project or a JAR file to clarify my thoughts. I
recommend it. Hands-on experience helps you learn what you can't from
passively looking at code or diagrams.

--- In domaindrivendesign <at> yahoogroups.com, "chris.sano" <csano32@...>
wrote:
>
> Does anyone know where I can find a sample C# project that exercises 
> different DDD concepts and patterns?
> 
> Thanks!
>

------------------------------------


Gmane