public static async Task <DynamicEntityProperty> AddAsync <TEntity, TPrimaryKey>(this IDynamicEntityPropertyManager manager, int dynamicPropertyId, int?tenantId)
            where TEntity : IEntity <TPrimaryKey>
        {
            var entity = new DynamicEntityProperty()
            {
                DynamicPropertyId = dynamicPropertyId,
                EntityFullName    = typeof(TEntity).FullName,
                TenantId          = tenantId
            };
            await manager.AddAsync(entity);

            return(entity);
        }
Exemple #2
0
 public async Task Add(DynamicEntityPropertyDto dto)
 {
     dto.TenantId = AbpSession.TenantId;
     await _dynamicEntityPropertyManager.AddAsync(ObjectMapper.Map <DynamicEntityProperty>(dto));
 }
 public static Task <DynamicEntityProperty> AddAsync <TEntity, TPrimaryKey>(this IDynamicEntityPropertyManager manager, DynamicProperty dynamicProperty, int?tenantId)
     where TEntity : IEntity <TPrimaryKey>
 {
     return(manager.AddAsync <TEntity, TPrimaryKey>(dynamicProperty.Id, tenantId));
 }
 public static Task <DynamicEntityProperty> AddAsync <TEntity>(this IDynamicEntityPropertyManager manager, int dynamicPropertyId, int?tenantId)
     where TEntity : IEntity <int>
 {
     return(manager.AddAsync <TEntity, int>(dynamicPropertyId, tenantId));
 }