Ejemplo n.º 1
0
 private Parameter(string name, bool isReturnParameter, ParameterModifier modifier, ParameterQuantifier quantifier, ParameterType dataType, string dataTypeReferencedTableMappingConnectionName, string dataTypeReferencedTableMappingSchemaName, string dataTypeReferencedTableMappingName, string dataTypeReferencedEnumColumnMappingName, string otherDataType, bool nullable, List <Annotation <Parameter <T> > > annotations, List <Attribute <Parameter <T> > > attributes)
 {
     _name = name;
     _isReturnParameter = isReturnParameter;
     _modifier          = modifier;
     _quantifier        = quantifier;
     _type = dataType;
     this.DataTypeReferencedTableMappingConnectionName = dataTypeReferencedTableMappingConnectionName;
     _dataTypeReferencedTableMappingSchemaName         = dataTypeReferencedTableMappingSchemaName;
     _dataTypeReferencedTableMappingName      = dataTypeReferencedTableMappingName;
     _dataTypeReferencedEnumColumnMappingName = dataTypeReferencedEnumColumnMappingName;
     _otherDataType = otherDataType;
     _nullable      = nullable;
     _annotations   = new List <Annotation <Parameter <T> > >(annotations ?? new List <Annotation <Parameter <T> > >());
     _attributes    = new List <Attribute <Parameter <T> > >(attributes ?? new List <Attribute <Parameter <T> > >());
 }
Ejemplo n.º 2
0
 public static Parameter <T> CreateOtherParameter(string name, Parameter <T> .ParameterModifier modifier, ParameterQuantifier quantifier, string dataType, bool nullable, List <Annotation <Parameter <T> > > annotations, List <Attribute <Parameter <T> > > attributes)
 {
     return(new Parameter <T>(name, false, modifier, quantifier, Parameter <T> .ParameterType.Other, null, null, null, null, dataType, nullable, annotations, attributes));
 }
Ejemplo n.º 3
0
 public static Parameter <T> CreateDataObjectParameter(string name, Parameter <T> .ParameterModifier modifier, ParameterQuantifier quantifier, TableMapping dataTypeReferencedTableMapping, List <Annotation <Parameter <T> > > annotations, List <Attribute <Parameter <T> > > attributes)
 {
     return(new Parameter <T>(name, false, modifier, quantifier, Parameter <T> .ParameterType.DataObject, dataTypeReferencedTableMapping.ConnectionName, dataTypeReferencedTableMapping.SchemaName, dataTypeReferencedTableMapping.TableName, null, null, false, annotations, attributes));
 }
Ejemplo n.º 4
0
 public static Parameter <T> CreateOtherReturnParameter(string dataType, ParameterQuantifier quantifier, bool isNullable, List <Annotation <Parameter <T> > > annotations, List <Attribute <Parameter <T> > > attributes)
 {
     return(new Parameter <T>(null, true, Parameter <T> .ParameterModifier.None, quantifier, Parameter <T> .ParameterType.Other, null, null, null, null, dataType, isNullable, annotations, attributes));
 }