示例#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);
 }