Exemplo n.º 1
0
        public static Saicdisconnect BuildSaicdisconnectFromRow(DataRow row)
        {
            Saicdisconnect entity = new Saicdisconnect();

            entity.userName  = row.IsNull("user-name") ? string.Empty : row.Field <string>("user-name");
            entity.cGuid     = row.IsNull("cGuid") ? string.Empty : row.Field <string>("cGuid");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaicdisconnect(ref DataRow row, Saicdisconnect entity)
 {
     row.SetField("user-name", entity.userName);
     row.SetField("cGuid", entity.cGuid);
     row.SetField("userfield", entity.userfield);
 }