Esempio n. 1
0
        public static Glsfsetupscolist BuildGlsfsetupscolistFromRow(DataRow row)
        {
            Glsfsetupscolist entity = new Glsfsetupscolist();

            entity.cono      = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.name      = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupscolist(ref DataRow row, Glsfsetupscolist entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("name", entity.name);
     row.SetField("userfield", entity.userfield);
 }