Esempio n. 1
0
 public static void FillObject(Business.DataObjectFriend item, SqlDataReader sqlReader)
 {
     DataObjectUser.FillObject(item, sqlReader);
     if (sqlReader["UFR_TypeID"] != DBNull.Value) item.FriendType = (FriendType)Convert.ToInt32(sqlReader["UFR_TypeID"]);
     if (sqlReader["FRI_Blocked"] != DBNull.Value) item.Blocked = Convert.ToBoolean(sqlReader["FRI_Blocked"]);
     if (sqlReader["FRI_AllowBirthdayNotIFication"] != DBNull.Value) item.AllowBirthdayNotification = Convert.ToInt32(sqlReader["FRI_AllowBirthdayNotIFication"]);
 }
Esempio n. 2
0
 public static string GetUpdateSQL(Business.DataObjectFriend item, SqlParameterCollection parameters)
 {
     return DataObjectUser.GetUpdateSQL((Business.DataObjectUser) item,  parameters);
 }