コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaiolistresults(ref DataRow row, Saiolistresults entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("oper2", entity.oper2);
     row.SetField("logindt", entity.logindt);
     row.SetField("logintm", entity.logintm);
     row.SetField("currproc", entity.currproc);
     row.SetField("whse", entity.whse);
     row.SetField("printernm", entity.printernm);
     row.SetField("loginfl", entity.loginfl);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Saiolistresults BuildSaiolistresultsFromRow(DataRow row)
        {
            Saiolistresults entity = new Saiolistresults();

            entity.cono      = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.oper2     = row.IsNull("oper2") ? string.Empty : row.Field <string>("oper2");
            entity.logindt   = row.Field <DateTime?>("logindt");
            entity.logintm   = row.IsNull("logintm") ? string.Empty : row.Field <string>("logintm");
            entity.currproc  = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.printernm = row.IsNull("printernm") ? string.Empty : row.Field <string>("printernm");
            entity.loginfl   = row.Field <bool>("loginfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }