/// <summary> /// Initializes a new <see cref="DeleteDbOperation"/> /// </summary> /// <param name="table">A <see cref="Table"/> representing the object to be modified</param> public DeleteDbOperation(Table table) { base.Table = table; // Always remove the alias on an insert operation base.Table.Alias = ""; Where = new WhereCollection(); }
/// <summary> /// Initializes a new instance of the Select Database Operation /// </summary> /// <param name="table">Table to Sql against</param> public SelectDbOperation(Table table) : base() { Distinct = false; TopNRows = 0; GroupBy = false; if (table != null) { Table = new Table[] { table } } ; SelectFields = new FieldCollection(); Where = new WhereCollection(); OrderBy = new OrderByCollection(); }