Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAosystemfunctyp(ref DataRow row, Aosystemfunctyp entity)
 {
     row.SetField("type_code", entity.typeCode);
     row.SetField("Name", entity.name);
     row.SetField("Key_Label", entity.keyLabel);
     row.SetField("Browse_Label", entity.browseLabel);
     row.SetField("Proc_Label", entity.procLabel);
     row.SetField("Run_Name", entity.runName);
     row.SetField("Param_Flag", entity.paramFlag);
     row.SetField("type_dialog", entity.typeDialog);
     row.SetField("origin", entity.origin);
     row.SetField("Browse_Label_ReqFL", entity.browseLabelReqFL);
     row.SetField("standardty", entity.standardty);
     row.SetField("Key_Label_ReqFL", entity.keyLabelReqFL);
     row.SetField("Proc_Label_ReqFL", entity.procLabelReqFL);
     row.SetField("pv_sassm_types-rowid", entity.pvSassmTypesRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Aosystemfunctyp BuildAosystemfunctypFromRow(DataRow row)
        {
            Aosystemfunctyp entity = new Aosystemfunctyp();

            entity.typeCode          = row.IsNull("type_code") ? string.Empty : row.Field <string>("type_code");
            entity.name              = row.IsNull("Name") ? string.Empty : row.Field <string>("Name");
            entity.keyLabel          = row.IsNull("Key_Label") ? string.Empty : row.Field <string>("Key_Label");
            entity.browseLabel       = row.IsNull("Browse_Label") ? string.Empty : row.Field <string>("Browse_Label");
            entity.procLabel         = row.IsNull("Proc_Label") ? string.Empty : row.Field <string>("Proc_Label");
            entity.runName           = row.IsNull("Run_Name") ? string.Empty : row.Field <string>("Run_Name");
            entity.paramFlag         = row.Field <bool>("Param_Flag");
            entity.typeDialog        = row.IsNull("type_dialog") ? string.Empty : row.Field <string>("type_dialog");
            entity.origin            = row.IsNull("origin") ? string.Empty : row.Field <string>("origin");
            entity.browseLabelReqFL  = row.Field <bool>("Browse_Label_ReqFL");
            entity.standardty        = row.IsNull("standardty") ? string.Empty : row.Field <string>("standardty");
            entity.keyLabelReqFL     = row.Field <bool>("Key_Label_ReqFL");
            entity.procLabelReqFL    = row.Field <bool>("Proc_Label_ReqFL");
            entity.pvSassmTypesRowid = row.Field <byte[]>("pv_sassm_types-rowid").ToStringEncoded();
            entity.userfield         = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }