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