Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlacctloaddatacriteria(ref DataRow row, Glacctloaddatacriteria entity)
 {
     row.SetField("glno", entity.glno);
     row.SetField("glyear", entity.glyear);
     row.SetField("fromfunction", entity.fromfunction);
     row.SetField("fieldname", entity.fieldname);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Glacctloaddatacriteria BuildGlacctloaddatacriteriaFromRow(DataRow row)
        {
            Glacctloaddatacriteria entity = new Glacctloaddatacriteria();

            entity.glno         = row.IsNull("glno") ? string.Empty : row.Field <string>("glno");
            entity.glyear       = row.IsNull("glyear") ? 0 : row.Field <int>("glyear");
            entity.fromfunction = row.IsNull("fromfunction") ? string.Empty : row.Field <string>("fromfunction");
            entity.fieldname    = row.IsNull("fieldname") ? string.Empty : row.Field <string>("fieldname");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }