예제 #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
파일: Aggregate.cs 프로젝트: ycaihua/dg.Sql
 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);
        }
예제 #31
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;
        }
예제 #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;
        }