Exemple #1
0
        public static RoleComponentPermission RoleComponentPermission(System.Data.IDataReader reader)
        {
            RoleComponentPermission result = null;

            if (null != reader && reader.Read())
            {
                result = new RoleComponentPermission();
                PopulateRoleComponentPermission(result, reader);
            }

            return result;
        }
Exemple #2
0
 public static void PopulateRoleComponentPermission(RoleComponentPermission input, System.Data.IDataReader reader)
 {
     PopulateRecord(input, reader);
     input.RecordId = input.RoleComponentPermissionId = Utilities.ToInt(reader[Medical.Apartment.Common.RoleComponentPermission.ColumnNames.RoleComponentPermissionId]);
     input.RoleId = Utilities.ToGuid(reader[Medical.Apartment.Common.RoleComponentPermission.ColumnNames.RoleId]);
     input.ComponentId = Utilities.ToInt(reader[Medical.Apartment.Common.RoleComponentPermission.ColumnNames.ComponentId]);
     input.WriteRight = Utilities.ToNBool(reader[Medical.Apartment.Common.RoleComponentPermission.ColumnNames.WriteRight]);
     input.RoleName = Utilities.ToString(reader[Medical.Apartment.Common.RoleComponentPermission.ColumnNamesExtended.RoleName]);
     input.ComponentName = Utilities.ToString(reader[Medical.Apartment.Common.RoleComponentPermission.ColumnNamesExtended.ComponentName]);
 }