Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDropboxauthkey(ref DataRow row, Dropboxauthkey entity)
 {
     row.SetField("userkey", entity.userkey);
     row.SetField("passwordkey", entity.passwordkey);
     row.SetField("url", entity.url);
     row.SetField("tempauthcode", entity.tempauthcode);
     row.SetField("finalauthcode", entity.finalauthcode);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Dropboxauthkey BuildDropboxauthkeyFromRow(DataRow row)
        {
            Dropboxauthkey entity = new Dropboxauthkey();

            entity.userkey       = row.IsNull("userkey") ? string.Empty : row.Field <string>("userkey");
            entity.passwordkey   = row.IsNull("passwordkey") ? string.Empty : row.Field <string>("passwordkey");
            entity.url           = row.IsNull("url") ? string.Empty : row.Field <string>("url");
            entity.tempauthcode  = row.IsNull("tempauthcode") ? string.Empty : row.Field <string>("tempauthcode");
            entity.finalauthcode = row.IsNull("finalauthcode") ? string.Empty : row.Field <string>("finalauthcode");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }