Ejemplo n.º 1
0
 internal SysAccountToUserInsert(IDbConnection _conn, SysAccountToUser _entity)
 {
     this.Connection = _conn;
     this.IsBeginTransaction = false;
     this.entity = _entity;
 }
 /// <summary>
 /// 新增[系统账号-用户关系]
 /// </summary>
 /// <param name="connection"></param>
 /// <param name="transaction"></param>
 /// <param name="sysAccountToUser"></param>
 /// <returns></returns>
 internal int Insert_SysAccountToUser(IDbConnection connection, IDbTransaction transaction, SysAccountToUser sysAccountToUser)
 {
     var insert = connection.Insert("SysAccount")
         .Field("PK_Account", DbType.AnsiString, sysAccountToUser.PK_Account)
         .Field("PK_User", DbType.AnsiString, sysAccountToUser.PK_User)
         .Execute();
     return insert;
 }