コード例 #1
0
 /// <summary>
 /// 添加功能点
 /// </summary>
 /// <param name="authority"></param>
 /// <returns></returns>
 public bool AddAuthority(Authority authority)
 {
     sbString.Append("insert into Authority values(@AuthorityName,@AuthorityTag,@AuthorityDescription,@AuthorityOrder,@AuthorityState);");
     SqlParameter[] parameters = new SqlParameter[]
     {
         new SqlParameter("@AuthorityName",authority.AuthorityName),
         new SqlParameter("@AuthorityDescription",authority.AuthorityDescription),
         new SqlParameter("@AuthorityOrder",authority.AuthorityOrder),
         new SqlParameter("@AuthorityState",authority.AuthorityState),
         new SqlParameter("@AuthorityTag",authority.AuthorityTag)
     };
     try
     {
         SqlHelper.ExecuteNonQuery(CommandType.Text, sbString.ToString(), parameters);
     }
     catch
     {
         return false;
     }
     return true;
 }
コード例 #2
0
 partial void DeleteAuthority(Authority instance);
コード例 #3
0
 partial void UpdateAuthority(Authority instance);
コード例 #4
0
 partial void InsertAuthority(Authority instance);
コード例 #5
0
 /// <summary>
 /// 修改功能点
 /// </summary>
 /// <param name="authority"></param>
 /// <returns></returns>
 public bool UpdateAuthority(Authority authority)
 {
     return true;
 }