/// <summary> /// Save entity in async fashion. /// </summary> /// <returns></returns> public async Task SaveAsync() { EntityPath path = new EntityPath(this.entityType); IEntityService entityService = this.GetPreSaveEntity(); Entity entity = await this.EntityService.CreateAsync(this, path); this.ConfigurePostSaveEntity( entityService, entity.propertyBag); }
/// <summary> /// Check for equality. /// </summary> /// <param name="other">Other object.</param> /// <returns></returns> protected bool Equals(EntityPath other) { return(string.Equals(this.Id, other.Id) && string.Equals(this.RootContainer, other.RootContainer)); }