コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdeminitialloadresults(ref DataRow row, Pdeminitialloadresults entity)
 {
     row.SetField("cSource", entity.cSource);
     row.SetField("cDestination", entity.cDestination);
     row.SetField("cDescription", entity.cDescription);
     row.SetField("cGridViewName", entity.cGridViewName);
     row.SetField("fiSetID-sensitive", entity.fiSetIDSensitive);
     row.SetField("btnSetID-sensitive", entity.btnSetIDSensitive);
     row.SetField("btnContinue-sensitive", entity.btnContinueSensitive);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Pdeminitialloadresults BuildPdeminitialloadresultsFromRow(DataRow row)
        {
            Pdeminitialloadresults entity = new Pdeminitialloadresults();

            entity.cSource              = row.IsNull("cSource") ? string.Empty : row.Field <string>("cSource");
            entity.cDestination         = row.IsNull("cDestination") ? string.Empty : row.Field <string>("cDestination");
            entity.cDescription         = row.IsNull("cDescription") ? string.Empty : row.Field <string>("cDescription");
            entity.cGridViewName        = row.IsNull("cGridViewName") ? string.Empty : row.Field <string>("cGridViewName");
            entity.fiSetIDSensitive     = row.Field <bool>("fiSetID-sensitive");
            entity.btnSetIDSensitive    = row.Field <bool>("btnSetID-sensitive");
            entity.btnContinueSensitive = row.Field <bool>("btnContinue-sensitive");
            entity.userfield            = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }