SourceGen started
This commit is contained in:
1 parent
a3cd3e86a1
commit
a409054750
274 files changed
+14862
-3
No files matched your search
@@ -0,0 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user