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); }
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); }
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); }