コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlbuildacctno(ref DataRow row, Glbuildacctno entity)
 {
     row.SetField("yr", entity.yr);
     row.SetField("glno", entity.glno);
     row.SetField("glsa-rowid", entity.glsaRowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Glbuildacctno BuildGlbuildacctnoFromRow(DataRow row)
        {
            Glbuildacctno entity = new Glbuildacctno();

            entity.yr        = row.IsNull("yr") ? 0 : row.Field <int>("yr");
            entity.glno      = row.IsNull("glno") ? string.Empty : row.Field <string>("glno");
            entity.glsaRowid = row.Field <byte[]>("glsa-rowid").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }