コード例 #1
0
 public virtual void Update(ApplicationClaim entity)
 {
     if (entity != null)
     {
         this.Context.Entry <ApplicationClaim>(entity).State = EntityState.Modified;
     }
 }
コード例 #2
0
 public virtual void Delete(ApplicationClaim claim)
 {
     this.ThrowIfDisposed();
     if (claim == null)
     {
         throw new ArgumentNullException("claim");
     }
     this._claimStore.Delete(claim);
     this.Context.SaveChanges();
 }
コード例 #3
0
 public virtual async Task DeleteAsync(ApplicationClaim claim)
 {
     this.ThrowIfDisposed();
     if (claim == null)
     {
         throw new ArgumentNullException("claim");
     }
     this._claimStore.Delete(claim);
     await this.Context.SaveChangesAsync();
 }
コード例 #4
0
 public IdentityResult CreateGroup(ApplicationClaim claim)
 {
     _claimStore.Create(claim);
     return(IdentityResult.Success);
 }
コード例 #5
0
        public async Task <IdentityResult> CreateGroupAsync(ApplicationClaim claim)
        {
            await _claimStore.CreateAsync(claim);

            return(IdentityResult.Success);
        }
コード例 #6
0
        public async Task <IdentityResult> UpdateClaimAsync(ApplicationClaim claim)
        {
            await _claimStore.UpdateAsync(claim);

            return(IdentityResult.Success);
        }
コード例 #7
0
 public void Delete(ApplicationClaim entity)
 {
     this.DbEntitySet.Remove(entity);
 }
コード例 #8
0
 public void Create(ApplicationClaim entity)
 {
     this.DbEntitySet.Add(entity);
 }