public static void UpdatePrivacyDBCredentials(PrivacyDB PrivacyDB) { var PRV = SQL_Entity.Connection.Table <PrivacyDB>().FirstOrDefault(c => c.UserID == PrivacyDB.UserID); PRV.UserID = PrivacyDB.UserID; PRV.WhoCanFollowMe = PrivacyDB.WhoCanFollowMe; PRV.WhoCanMessageMe = PrivacyDB.WhoCanMessageMe; PRV.WhoCanSeeMyBirday = PrivacyDB.WhoCanSeeMyBirday; SQL_Entity.Connection.Update(PRV); }
public static void DeletePrivacyDBRow(PrivacyDB PrivacyDB) { SQL_Entity.Connection.Delete(PrivacyDB); }
public static void InsertPrivacyDBCredentials(PrivacyDB PrivacyDB) { SQL_Entity.Connection.Insert(PrivacyDB); }