Ejemplo n.º 1
0
 /// <summary>
 /// 初始化Sql生成器
 /// </summary>
 /// <param name="matedata">实体元数据解析器</param>
 /// <param name="parameterManager">参数管理器</param>
 protected SqlBuilderBase(IEntityMatedata matedata = null, IParameterManager parameterManager = null)
 {
     EntityMatedata    = matedata;
     _parameterManager = parameterManager;
     EntityResolver    = new EntityResolver(matedata);
     AliasRegister     = new EntityAliasRegister();
     Pager             = new Pager();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化Sql生成器
 /// </summary>
 /// <param name="matedata">实体元数据解析器</param>
 /// <param name="tableDatabase">表数据库</param>
 /// <param name="parameterManager">参数管理器</param>
 protected SqlBuilderBase(IEntityMatedata matedata = null, ITableDatabase tableDatabase = null, IParameterManager parameterManager = null)
 {
     EntityMatedata    = matedata;
     TableDatabase     = tableDatabase;
     _parameterManager = parameterManager;
     EntityResolver    = new EntityResolver(matedata);
     AliasRegister     = new EntityAliasRegister();
     Pager             = new Pager();
     UnionItems        = new List <BuilderItem>();
     CteItems          = new List <BuilderItem>();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 清空
 /// </summary>
 public void Clear()
 {
     AliasRegister = new EntityAliasRegister();
     ClearSelect();
     ClearFrom();
     ClearJoin();
     ClearWhere();
     ClearGroupBy();
     ClearOrderBy();
     ClearSqlParams();
     ClearPageParams();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 清空
 /// </summary>
 public ISqlBuilder Clear()
 {
     AliasRegister = new EntityAliasRegister();
     ClearSelect();
     ClearFrom();
     ClearJoin();
     ClearWhere();
     ClearGroupBy();
     ClearOrderBy();
     ClearSqlParams();
     ClearPageParams();
     ClearUnionBuilders();
     ClearCte();
     return(this);
 }