public SelectInterfaceImplementation(GeneratorSettings settings, SelectType source, SelectType target)
 {
     _source  = source;
     _target  = target;
     _helper  = new NamedTypeHelper(source, settings);
     Settings = settings;
 }
 public EntityInterfaceTemplate(GeneratorSettings settings, EntityDefinition type)
 {
     Settings              = settings;
     Helper                = new NamedTypeHelper(type, settings);
     Type                  = type;
     WhereRules            = Type.WhereRules.ToList();
     ExplicitAttributes    = Type.ExplicitAttributes.ToList();
     AllExplicitAttributes = MakeUniqueNameList(Type.AllExplicitAttributes).ToList();
     InverseAttributes     = Type.InverseAttributes.ToList();
     AllInverseAttributes  = MakeUniqueNameList(Type.AllInverseAttributes).ToList();
     AllAttributes         = Type.AllAttributes.Where(a => !(a is DerivedAttribute)).ToList();
 }
Exemple #3
0
 public SelectTypeTemplate(GeneratorSettings settings, SelectType type)
 {
     Settings = settings;
     _helper  = new NamedTypeHelper(type, settings);
     Type     = type;
 }
 public DefinedTypeTemplate(GeneratorSettings settings, DefinedType type)
 {
     _settings = settings;
     _helper   = new NamedTypeHelper(type, settings);
     Type      = type;
 }
 public EnumerationTemplate(GeneratorSettings settings, EnumerationType type)
 {
     _settings = settings;
     _helper   = new NamedTypeHelper(type, settings);
     Type      = type;
 }