Esempio n. 1
0
 public override IObGroup AddGroupBy(Factory.ObProperty obProperty)
 {
     //_Key += "_" + obProperty.TableName + "_" + obProperty.ColumnName;
     _Key += "_" + obProperty.Key;
     DbGroups.Add(new DbGroup(obProperty.TableName, obProperty.ColumnName, obProperty.PropertyName));
     ObGroupProperties.Add(obProperty);
     return(this);
 }
Esempio n. 2
0
 public ObGroup(/*string tableName, string columnName, string propertyName*/ Factory.ObProperty obProperty)
 {
     //_Key = "GroupBy_" + obProperty.TableName + "_" + obProperty.ColumnName;
     _Key = "GroupBy_" + obProperty.Key;
     DbGroups.Add(new DbGroup(obProperty.TableName, obProperty.ColumnName, obProperty.PropertyName));
     //ObProperties.Add(new ObProperty(modelType, columnName));
     ObGroupProperties.Add(obProperty);
 }
Esempio n. 3
0
 public override IObGroup AddGroupBy(params Factory.ObProperty[] obPropertys)
 {
     foreach (var obProperty in obPropertys)
     {
         if (_Key.Length > 0)
         {
             _Key += "_";
         }
         //_Key += obProperty.TableName + "_" + obProperty.ColumnName;
         _Key += obProperty.Key;
         DbGroups.Add(new DbGroup(obProperty.TableName, obProperty.ColumnName, obProperty.PropertyName));
         ObGroupProperties.Add(obProperty);
     }
     return(this);
 }