/// <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; }
partial void DeleteAuthority(Authority instance);
partial void UpdateAuthority(Authority instance);
partial void InsertAuthority(Authority instance);
/// <summary> /// 修改功能点 /// </summary> /// <param name="authority"></param> /// <returns></returns> public bool UpdateAuthority(Authority authority) { return true; }