示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAosystemmenuitemrectyp(ref DataRow row, Aosystemmenuitemrectyp entity)
 {
     row.SetField("type_code", entity.typeCode);
     row.SetField("keyviewer-label", entity.keyviewerLabel);
     row.SetField("browsename-label", entity.browsenameLabel);
     row.SetField("website-label", entity.websiteLabel);
     row.SetField("functionprocedure-label", entity.functionprocedureLabel);
     row.SetField("keyviewer-hidden", entity.keyviewerHidden);
     row.SetField("browsename-hidden", entity.browsenameHidden);
     row.SetField("website-hidden", entity.websiteHidden);
     row.SetField("functionprocedure-hidden", entity.functionprocedureHidden);
     row.SetField("BrowseLabelReqFl", entity.browseLabelReqFl);
     row.SetField("KeyLabelReqFl", entity.keyLabelReqFl);
     row.SetField("ProcLabelReqFl", entity.procLabelReqFl);
     row.SetField("pv_sassm_types-rowid", entity.pvSassmTypesRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Aosystemmenuitemrectyp BuildAosystemmenuitemrectypFromRow(DataRow row)
        {
            Aosystemmenuitemrectyp entity = new Aosystemmenuitemrectyp();

            entity.typeCode                = row.IsNull("type_code") ? string.Empty : row.Field <string>("type_code");
            entity.keyviewerLabel          = row.IsNull("keyviewer-label") ? string.Empty : row.Field <string>("keyviewer-label");
            entity.browsenameLabel         = row.IsNull("browsename-label") ? string.Empty : row.Field <string>("browsename-label");
            entity.websiteLabel            = row.IsNull("website-label") ? string.Empty : row.Field <string>("website-label");
            entity.functionprocedureLabel  = row.IsNull("functionprocedure-label") ? string.Empty : row.Field <string>("functionprocedure-label");
            entity.keyviewerHidden         = row.Field <bool>("keyviewer-hidden");
            entity.browsenameHidden        = row.Field <bool>("browsename-hidden");
            entity.websiteHidden           = row.Field <bool>("website-hidden");
            entity.functionprocedureHidden = row.Field <bool>("functionprocedure-hidden");
            entity.browseLabelReqFl        = row.Field <bool>("BrowseLabelReqFl");
            entity.keyLabelReqFl           = row.Field <bool>("KeyLabelReqFl");
            entity.procLabelReqFl          = row.Field <bool>("ProcLabelReqFl");
            entity.pvSassmTypesRowid       = row.Field <byte[]>("pv_sassm_types-rowid").ToStringEncoded();
            entity.userfield               = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }