예제 #1
0
파일: ObGroup.cs 프로젝트: dawnzhu/NParsing
 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);
 }
예제 #2
0
파일: ObGroup.cs 프로젝트: dawnzhu/NParsing
 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);
 }
예제 #3
0
파일: ObGroup.cs 프로젝트: dawnzhu/NParsing
 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);
 }