示例#1
1
 public IfNull(
      object firstValue, ValueObjectType firstValueType,
      object secondValue, ValueObjectType secondValueType)
 {
     this.Value1 = new ValueWrapper(firstValue, firstValueType);
     this.Value2 = new ValueWrapper(secondValue, secondValueType);
 }
示例#2
0
文件: Round.cs 项目: ycaihua/dg.Sql
 public Round(string TableName, object Object, ValueObjectType ObjectType, int DecimalPlaces)
 {
     this.TableName = TableName;
     this.Object = Object;
     this.ObjectType = ObjectType;
     this.DecimalPlaces = DecimalPlaces;
 }
示例#3
0
 public PassThroughAggregate(string aggregateType, string tableName, object anObject, ValueObjectType objectType)
 {
     this.TableName = tableName;
     this.Object = anObject;
     this.ObjectType = objectType;
     this.AggregateType = aggregateType;
 }
示例#4
0
 public IfNull(
      string firstTableName, string firstColumnName,
      object secondValue, ValueObjectType secondValueType)
 {
     this.Value1 = new ValueWrapper(firstTableName, firstColumnName);
     this.Value2 = new ValueWrapper(secondValue, secondValueType);
 }
示例#5
0
 public RandWeight(
     string TableName, string Object, ValueObjectType ObjectType)
 {
     this.TableName = TableName;
     this.Object = Object;
     this.ObjectType = ObjectType;
 }
示例#6
0
 public IfNull(
      object firstValue, ValueObjectType firstValueType,
      string secondTableName, string secondColumnName)
 {
     this.Value1 = new ValueWrapper(firstValue, firstValueType);
     this.Value2 = new ValueWrapper(secondTableName, secondColumnName);
 }
示例#7
0
 public GeographyContains(Geometry ContainingObject, Geometry ContainedObject)
 {
     this.ContainingObject = ContainingObject;
     this.ContainingObjectType = ValueObjectType.Value;
     this.ContainedObject = ContainedObject;
     this.ContainedObjectType = ValueObjectType.Value;
 }
示例#8
0
文件: Add.cs 项目: danielgindi/dg.Sql
 public Add(
     object value1, ValueObjectType valueType1,
     string tableName2, string columnName2)
 {
     this.Value1 = new ValueWrapper(value1, valueType1);
     this.Value2 = new ValueWrapper(tableName2, columnName2);
 }
示例#9
0
文件: Add.cs 项目: danielgindi/dg.Sql
 public Add(
     object value1, ValueObjectType valueType1,
     object value2, ValueObjectType valueType2)
 {
     this.Value1 = new ValueWrapper(value1, valueType1);
     this.Value2 = new ValueWrapper(value2, valueType2);
 }
示例#10
0
 public GeographyContains(object ContainingObject, ValueObjectType ContainingObjectType,
     string ContainedColumnName)
 {
     this.ContainingObject = ContainingObject;
     this.ContainingObjectType = ContainingObjectType;
     this.ContainedObject = ContainedColumnName;
     this.ContainedObjectType = ValueObjectType.ColumnName;
 }
示例#11
0
 public DateTimeAdd(string TableName, object Object, ValueObjectType ObjectType, DateTimeUnit unit, Int64 interval)
 {
     this.TableName = TableName;
     this.Object = Object;
     this.ObjectType = ObjectType;
     this.Unit = unit;
     this.Interval = interval;
 }
示例#12
0
        public BootstrapperConfiguration(ValueObjectType valueObjectType, ITypeAnalyzerService typeAnalyzerService)
        {
            Guard.Against.Null(() => valueObjectType);
            Guard.Against.Null(() => typeAnalyzerService);

            this.valueObjectType     = valueObjectType;
            this.typeAnalyzerService = typeAnalyzerService;
        }
示例#13
0
 public Divide(
     string tableName1, string column1,
     object value2, ValueObjectType valueType2
     )
 {
     this.Value1 = new ValueWrapper(tableName1, column1);
     this.Value2 = new ValueWrapper(value2, valueType2);
 }
示例#14
0
 public GeographyContains(string ContainingColumnName,
     Geometry ContainedObject)
 {
     this.ContainingObject = ContainingColumnName;
     this.ContainingObjectType = ValueObjectType.ColumnName;
     this.ContainedObject = ContainedObject;
     this.ContainedObjectType = ValueObjectType.Value;
 }
示例#15
0
 public Multiply(
     string tableName1, object value1, ValueObjectType valueType1,
     string tableName2, object value2, ValueObjectType valueType2
     )
 {
     this.Value1 = new ValueWrapper(tableName1, value1, valueType1);
     this.Value2 = new ValueWrapper(tableName2, value2, valueType2);
 }
示例#16
0
 public GeographyContains(object ContainingObject, ValueObjectType ContainingObjectType,
     object ContainedObject, ValueObjectType ContainedObjectType)
 {
     this.ContainingObject = ContainingObject;
     this.ContainingObjectType = ContainingObjectType;
     this.ContainedObject = ContainedObject;
     this.ContainedObjectType = ContainedObjectType;
 }
示例#17
0
 public GeographyContains(Geometry ContainingObject,
     string ContainedTableName, string ContainedColumnName)
 {
     this.ContainingObject = ContainingObject;
     this.ContainingObjectType = ValueObjectType.Value;
     this.ContainedTableName = ContainedTableName;
     this.ContainedObject = ContainedColumnName;
     this.ContainedObjectType = ValueObjectType.ColumnName;
 }
示例#18
0
 public GeographyContains(
     Geometry outerValue,
     string innerColumnName)
 {
     this.OuterValue = outerValue;
     this.OuterValueType = ValueObjectType.Value;
     this.InnerValue = innerColumnName;
     this.InnerValueType = ValueObjectType.ColumnName;
 }
示例#19
0
 public GeographyContains(
     object outerValue, ValueObjectType outerValueType,
     object innerValue, ValueObjectType innerValueType)
 {
     this.OuterValue = outerValue;
     this.OuterValueType = outerValueType;
     this.InnerValue = innerValue;
     this.InnerValueType = innerValueType;
 }
示例#20
0
文件: IfNull.cs 项目: ycaihua/dg.Sql
 public IfNull(
      object FirstObject, ValueObjectType FirstObjectType,
      object SecondObject, ValueObjectType SecondObjectType)
 {
     this.FirstObject = FirstObject;
     this.FirstObjectType = FirstObjectType;
     this.SecondObject = SecondObject;
     this.SecondObjectType = SecondObjectType;
 }
示例#21
0
 public Replace(
     object source, ValueObjectType sourceType,
     string searchTableName, string searchColumn,
     string replaceWithTableName, string replaceWithColumn)
 {
     this.SourceValue = new ValueWrapper(source, sourceType);
     this.SearchValue = new ValueWrapper(searchTableName, searchColumn);
     this.ReplaceWithValue = new ValueWrapper(replaceWithTableName, replaceWithColumn);
 }
示例#22
0
 public Replace(
     string sourceTableName, string sourceColumn,
     object search, ValueObjectType searchType,
     object replace, ValueObjectType replaceWithType)
 {
     this.SourceValue = new ValueWrapper(sourceTableName, sourceColumn);
     this.SearchValue = new ValueWrapper(search, searchType);
     this.ReplaceWithValue = new ValueWrapper(replace, replaceWithType);
 }
示例#23
0
文件: Replace.cs 项目: ycaihua/dg.Sql
 public Replace(
      string Source, ValueObjectType SourceType,
      string Search, ValueObjectType SearchType,
      string ReplaceWith, ValueObjectType ReplaceWithType)
     : this(
     null, Source, SourceType,
     null, Search, SearchType,
     null, ReplaceWith, ReplaceWithType)
 {
 }
示例#24
0
 public GeographyContains(
     object outerValue, ValueObjectType outerValueType,
     string innerTableName, string innerColumnName)
 {
     this.OuterValue = outerValue;
     this.OuterValueType = outerValueType;
     this.InnerTableName = innerTableName;
     this.InnerValue = innerColumnName;
     this.InnerValueType = ValueObjectType.ColumnName;
 }
示例#25
0
文件: IfNull.cs 项目: ycaihua/dg.Sql
 public IfNull(
      object FirstObject, ValueObjectType FirstObjectType,
      string SecondTableName, string SecondColumnName)
 {
     this.FirstObject = FirstObject;
     this.FirstObjectType = FirstObjectType;
     this.SecondTableName = SecondTableName;
     this.SecondObject = SecondColumnName;
     this.SecondObjectType = ValueObjectType.ColumnName;
 }
示例#26
0
 public GeographyContains(string ContainingTableName, object ContainingObject, ValueObjectType ContainingObjectType,
     string ContainedTableName, object ContainedObject, ValueObjectType ContainedObjectType)
 {
     this.ContainingTableName = ContainingTableName;
     this.ContainingObject = ContainingObject;
     this.ContainingObjectType = ContainingObjectType;
     this.ContainedTableName = ContainedTableName;
     this.ContainedObject = ContainedObject;
     this.ContainedObjectType = ContainedObjectType;
 }
示例#27
0
文件: IfNull.cs 项目: ycaihua/dg.Sql
 public IfNull(
      string FirstTableName, string FirstColumnName,
      object SecondObject, ValueObjectType SecondObjectType)
 {
     this.FirstTableName = FirstTableName;
     this.FirstObject = FirstColumnName;
     this.FirstObjectType = ValueObjectType.ColumnName;
     this.SecondObject = SecondObject;
     this.SecondObjectType = SecondObjectType;
 }
示例#28
0
文件: Add.cs 项目: ycaihua/dg.Sql
 public Add(string TableName1, object Object1, ValueObjectType ObjectType1, 
     string TableName2, object Object2, ValueObjectType ObjectType2)
 {
     this.TableName1 = TableName1;
     this.Object1 = Object1;
     this.ObjectType1 = ObjectType1;
     this.TableName2 = TableName2;
     this.Object2 = Object2;
     this.ObjectType2 = ObjectType2;
 }
示例#29
0
 public GeographyContains(
     string outerTableName, object outerValue, ValueObjectType outerValueType,
     string innerTableName, object innerValue, ValueObjectType innerValueType)
 {
     this.OuterTableName = outerTableName;
     this.OuterValue = outerValue;
     this.OuterValueType = outerValueType;
     this.InnerTableName = innerTableName;
     this.InnerValue = innerValue;
     this.InnerValueType = innerValueType;
 }
示例#30
0
        public ValueObjectType Create(Type type)
        {
            var valueObjectType = new ValueObjectType(type, this.typeAnalyzerService);

            var configuration = new BootstrapperConfiguration(valueObjectType, this.typeAnalyzerService);
            var bootstrapper  = this.bootstrapperProvider.GetBootstrapper(type);

            bootstrapper.Invoke(configuration);

            return(valueObjectType);
        }
        public ValueObjectType Create(Type type)
        {
            var valueObjectType = new ValueObjectType(type, this.typeAnalyzerService);

            var configuration = new BootstrapperConfiguration(valueObjectType, this.typeAnalyzerService);
            var bootstrapper = this.bootstrapperProvider.GetBootstrapper(type);

            bootstrapper.Invoke(configuration);

            return valueObjectType;
        }
示例#32
0
文件: Replace.cs 项目: ycaihua/dg.Sql
 public Replace(
     string SourceTableName, string Source, ValueObjectType SourceType,
     string SearchTableName, string Search, ValueObjectType SearchType,
     string ReplaceWithTableName, string ReplaceWith, ValueObjectType ReplaceWithType)
 {
     this.SourceTableName = SourceTableName;
     this.Source = Source;
     this.SourceType = SourceType;
     this.SearchTableName = SearchTableName;
     this.Search = Search;
     this.SearchType = SearchType;
     this.ReplaceWithTableName = ReplaceWithTableName;
     this.ReplaceWith = ReplaceWith;
     this.ReplaceWithType = ReplaceWithType;
 }
示例#33
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValueObject{T}"/> class.
 /// </summary>
 /// <param name="valueObjectType">The value object type.</param>
 protected ValueObject(ValueObjectType valueObjectType)
     : this(@this => new TypeInformation(valueObjectType))
 {
 }
示例#34
0
            public TypeInformation(ValueObjectType valueObjectType)
            {
                Guard.Against.Null(() => valueObjectType);

                this.EqualityComparer = (IEqualityComparer <T>)valueObjectType.EqualityComparer;
            }
        public ValueObjectConfigurationWrapper(ValueObjectType valueObjectType)
        {
            Guard.Against.Null(() => valueObjectType);

            this.valueObjectType = valueObjectType;
        }