Exemple #1
0
        public static Porrarlineaccept BuildPorrarlineacceptFromRow(DataRow row)
        {
            Porrarlineaccept entity = new Porrarlineaccept();

            entity.rowidPoeral = row.Field <byte[]>("rowid-poeral").ToStringEncoded();
            entity.lineno      = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPorrarlineaccept(ref DataRow row, Porrarlineaccept entity)
 {
     row.SetField("rowid-poeral", entity.rowidPoeral.ToByteArray());
     row.SetField("lineno", entity.lineno);
 }