示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromApemschg(ref DataRow row, Apemschg entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("stage", entity.stage);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Apemschg BuildApemschgFromRow(DataRow row)
        {
            Apemschg entity = new Apemschg();

            entity.pono      = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf     = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.stage     = row.IsNull("stage") ? string.Empty : row.Field <string>("stage");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }