コード例 #1
0
        public void Insert(int RoleID,int NavID,bool Allow,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysRoleAssignment item = new SysRoleAssignment();

            item.RoleID = RoleID;

            item.NavID = NavID;

            item.Allow = Allow;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
コード例 #2
0
        public void Update(int Id,int RoleID,int NavID,bool Allow,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysRoleAssignment item = new SysRoleAssignment();
            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.RoleID = RoleID;

            item.NavID = NavID;

            item.Allow = Allow;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }