0

モデル クラスVocabModel(DbContext から派生) でこれを行うと、次のようになります。

public VocabModel() : base("DefaultConnection")
{

    if (Membership.GetUser()!=null)
    {
        this.currentuser = UserProfiles.Find((int)Membership.GetUser().ProviderUserKey);
    }

}

各ユーザー (またはセッション) の同じ currentuser メンバーを変更して、コードを使用できなくするか、またはすべての人に個別の VocabModel が存在するか?

4

1 に答える 1