/// <summary>
 /// 修改[集团]数据到本地
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="transaction"></param>
 /// <param name="orgGroup"></param>
 /// <returns></returns>
 internal int Update_OrgGroup(IDbConnection connection, IDbTransaction transaction, OrgGroup orgGroup)
 {
     var update = connection.Update("OrgGroup")
         .Set("PK_Group", DbType.AnsiString, orgGroup.PK_Group)
         .Set("InnerCode", DbType.AnsiString, orgGroup.InnerCode)
         .Set("Name", DbType.AnsiString, orgGroup.Name)
         .Set("T_Updater", DbType.AnsiString, orgGroup.T_Updater)
         .Set("T_UpdaterName", DbType.AnsiString, orgGroup.T_UpdaterName)
         .Set("T_UpdateTime", DbType.DateTime, orgGroup.T_UpdateTime)
         .Set("NC_Modifiedtime", DbType.AnsiString, orgGroup.NC_Modifiedtime)
         .Where(WhereMySQL.Equal("NC_PK_Group", DbType.AnsiString, orgGroup.NC_PK_Group))
         .Execute();
     return update;
 }
 /// <summary>
 /// 新增[集团]数据到本地
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="transaction"></param>
 /// <param name="orgGroup"></param>
 /// <returns></returns>
 internal int Insert_OrgGroup(IDbConnection connection, IDbTransaction transaction, OrgGroup orgGroup)
 {
     var insert = connection.Insert("OrgGroup")
         .Field("PK_Group", DbType.AnsiString, orgGroup.PK_Group)
         .Field("InnerCode", DbType.AnsiString, orgGroup.InnerCode)
         .Field("Name", DbType.AnsiString, orgGroup.Name)
         .Field("T_Creater", DbType.AnsiString, orgGroup.T_Creater)
         .Field("T_CreaterName", DbType.AnsiString, orgGroup.T_CreaterName)
         .Field("T_CreateTime", DbType.DateTime, orgGroup.T_CreateTime)
         .Field("T_Updater", DbType.AnsiString, orgGroup.T_Updater)
         .Field("T_UpdaterName", DbType.AnsiString, orgGroup.T_UpdaterName)
         .Field("T_UpdateTime", DbType.DateTime, orgGroup.T_UpdateTime)
         .Field("NC_PK_Group", DbType.AnsiString, orgGroup.NC_PK_Group)
         .Field("NC_Modifiedtime", DbType.AnsiString, orgGroup.NC_Modifiedtime)
         .Execute();
     return insert;
 }
Example #3
0
 internal OrgGroupInsert(IDbConnection _conn, OrgGroup _entity)
 {
     this.Connection = _conn;
     this.IsBeginTransaction = false;
     this.entity = _entity;
 }