26 lines
567 B
C#
26 lines
567 B
C#
using System.Collections.Generic;
|
|
using Entities;
|
|
|
|
namespace InfraGens.Sample;
|
|
|
|
public class Examples
|
|
{
|
|
// Create generated entities, based on DDD.UbiquitousLanguageRegistry.txt
|
|
public object[] CreateEntities()
|
|
{
|
|
return new object[]
|
|
{
|
|
new Customer(),
|
|
new Employee(),
|
|
new Product(),
|
|
new Shop(),
|
|
new Stock()
|
|
};
|
|
}
|
|
|
|
// Execute generated method Report
|
|
public IEnumerable<string> CreateEntityReport(SampleEntity entity)
|
|
{
|
|
return entity.Report();
|
|
}
|
|
} |