Beispiel #1
0
        public override bool Equals(object obj)
        {
            Roles_usersInfo item = obj as Roles_usersInfo;

            if (item == null)
            {
                return(false);
            }
            return(this.ToString().Equals(item.ToString()));
        }
Beispiel #2
0
        public Roles_usersInfo FlagUsers(ulong?Users_id)
        {
            Roles_usersInfo item = cnodejs.BLL.Roles_users.GetItem(this.Id, Users_id);

            if (item == null)
            {
                item = cnodejs.BLL.Roles_users.Insert(new Roles_usersInfo {
                    Roles_id = this.Id,
                    Users_id = Users_id
                });
            }
            return(item);
        }
Beispiel #3
0
        public Roles_usersInfo FlagRoles(uint?Roles_id)
        {
            Roles_usersInfo item = cnodejs.BLL.Roles_users.GetItem(Roles_id, this.Id);

            if (item == null)
            {
                item = cnodejs.BLL.Roles_users.Insert(new Roles_usersInfo {
                    Roles_id = Roles_id,
                    Users_id = this.Id
                });
            }
            return(item);
        }
Beispiel #4
0
 public static string ToJson(this Roles_usersInfo item)
 {
     return(string.Concat(item));
 }