本文整理匯總了C#中QX.Comm.ModelExceptions類的典型用法代碼示例。如果您正苦於以下問題:C# ModelExceptions類的具體用法?C# ModelExceptions怎麽用?C# ModelExceptions使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ModelExceptions類屬於QX.Comm命名空間,在下文中一共展示了ModelExceptions類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Document_Manage model,int A)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model, A);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例2: Insert
/// <summary>
/// 插入數據
/// </summary>
/// <param name='model'>實體</param>
/// <param name='model'>是否完成驗證</param>
/// <returns>bool</returns>
public bool Insert(WH_Material model,bool IsValid)
{
var e = new ModelExceptions();
bool result = false;
if (e.IsValid && IsValid)
{
//完成了驗證,開始更新數據庫了
int _result = instance.Add(model);
if (_result > 0)
{
result = true;
}
}
return result;
}
示例3: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Sys_Config_ListPage model,bool IsValid)
{
bool result = false;
var e = new ModelExceptions();
if(e.IsValid && IsValid){
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
}
return result;
}
示例4: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Bse_Address model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例5: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Sys_UserPermission model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例6: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Vehicles_Examined model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例7: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(System_TopMenu model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例8: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(WH_BanlanceRelate model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例9: Insert
/// <summary>
/// 插入數據
/// </summary>
/// <param name='model'>實體</param>
/// <param name='model'>是否完成驗證</param>
/// <returns>bool</returns>
public bool Insert(Sys_Config_Field_Refer model,bool IsValid)
{
var e = new ModelExceptions();
bool result = false;
if (e.IsValid && IsValid)
{
//完成了驗證,開始更新數據庫了
int _result = instance.Add(model);
if (_result > 0)
{
result = true;
}
}
return result;
}
示例10: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Sys_Config_Field_Refer model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例11: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Correct_Preventing model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例12: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Customer_Visit model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例13: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Document_Lending model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例14: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Verify_TemplateConfig model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}
示例15: Update
/// <summary>
/// 更新數據
/// </summary>
/// <param name='model'>實體</param>
/// <returns>bool</returns>
public bool Update(Loadometer_Usage model)
{
bool result = false;
var e = new ModelExceptions();
int _rseult = instance.Update(model);
if (_rseult > 0)
{
result = true;
}
return result;
}