public void CreateProfile( Guid userId ) { var profile = new UsersProfile(); profile.user_id = userId; profile.country_id = 0; profile.bnet_name = ""; profile.experience = 0; profile.first_name = ""; profile.last_name = ""; db.UsersProfiles.InsertOnSubmit( profile ); db.SubmitChanges(); }
public String GetCountryName( UsersProfile profile ) { switch (profile.country_id) { case 1: return "Молдова"; case 2: return "Украина"; case 3: return "Россия"; default: return ""; } }
partial void UpdateUsersProfile(UsersProfile instance);
partial void DeleteUsersProfile(UsersProfile instance);
partial void InsertUsersProfile(UsersProfile instance);