Inheritance: OptimizedPersistable
Ejemplo n.º 1
0
 public ApplicationDbContext():base("AspNetIdentitySample")
 {
   BeginUpdate();
   m_aspNetIdentity = AllObjects<AspNetIdentity>().FirstOrDefault();
   if (m_aspNetIdentity == null)
   {
     m_aspNetIdentity = new AspNetIdentity(this);
     Persist(m_aspNetIdentity);
   }
   Commit();
 }
Ejemplo n.º 2
0
 public UserStore(AspNetIdentity identity)
 {
     m_aspNetIdentity = identity;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleStore{T}"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 public RoleStore(AspNetIdentity identity)
 {
     m_aspNetIdentity = identity;
 }