/// <summary>
/// 数据操作公共接口
/// </summary>
/// <typeparam name="T"></typeparam>
internal interface ICommon:IDisposable
{
bool Insert();
bool Insert(InsertOp option);
bool Insert(bool autoSetValue);
bool Insert(bool autoSetValue, InsertOp option);
bool Update();
bool Update(object where);
bool Update(object where, bool autoSetValue);
bool Delete();
bool Delete(object where);
bool Fill(object where);
MDataTable Select();
MDataTable Select(string where);
MDataTable Select(int topN, object where);
MDataTable Select(int pageIndex, int pageSize, string where, out int count);
int GetCount(string where);
bool Exists(string where);
#region UI接口
void GetFrom(object control);
void GetFrom(object control, object value);
bool GetFromJson(string jsonOrFileName);
void SetAutoParentControl(object parent, params object[] otherParent);
void SetAutoPrefix(string autoPrefix, params string[] otherPrefix);
void SetSelectColumns(params object[] columnNames);
void SetTo(object control);
void SetTo(object control, object value, bool isControlEnabled);
void SetTo(object control, object value);
void SetToAll(params object[] parentControls);
#endregion
string TableName { get; set; }
string DebugInfo { get; }
}