/// <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);
        }
Beispiel #2
0
 /// <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));
 }