Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public String GetCountryName( UsersProfile profile )
 {
     switch (profile.country_id)
     {
         case 1:
             return "Молдова";
         case 2:
             return "Украина";
         case 3:
             return "Россия";
         default:
             return "";
     }
 }
Esempio n. 3
0
 partial void UpdateUsersProfile(UsersProfile instance);
Esempio n. 4
0
 partial void DeleteUsersProfile(UsersProfile instance);
Esempio n. 5
0
 partial void InsertUsersProfile(UsersProfile instance);