oee相关修改
This commit is contained in:
1 parent
9c5ef7bb31
commit
4419a4de3c
9 files changed
+422
-121
No files matched your search
@@ -45,6 +45,42 @@ namespace WindowsFormsApp1.db
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据插入
|
||||
/// </summary>
|
||||
/// <param name="item">要插入的数据项</param>
|
||||
/// <returns></returns>
|
||||
public BllResult InsertAll(List<T> item)
|
||||
{
|
||||
if (_connection.InsertAll(item) > 0)
|
||||
{
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
else
|
||||
{
|
||||
return BllResult.Error();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据删除
|
||||
/// </summary>
|
||||
/// <param name="item">要插入的数据项</param>
|
||||
/// <returns></returns>
|
||||
public BllResult DeleteAll()
|
||||
{
|
||||
if (_connection.DeleteAll<T>() > 0)
|
||||
{
|
||||
return BllResult.Sucess();
|
||||
}
|
||||
else
|
||||
{
|
||||
return BllResult.Error();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据删除
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user