Exemple #1
0
        public static Glsfsetupcfield BuildGlsfsetupcfieldFromRow(DataRow row)
        {
            Glsfsetupcfield entity = new Glsfsetupcfield();

            entity.fieldNo   = row.IsNull("fieldNo") ? 0 : row.Field <int>("fieldNo");
            entity.fieldText = row.IsNull("fieldText") ? string.Empty : row.Field <string>("fieldText");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetupcfield(ref DataRow row, Glsfsetupcfield entity)
 {
     row.SetField("fieldNo", entity.fieldNo);
     row.SetField("fieldText", entity.fieldText);
     row.SetField("userfield", entity.userfield);
 }