Exemplo n.º 1
0
        public static async Task <EntityDynamicParameter> AddAsync <TEntity, TPrimaryKey>(this IEntityDynamicParameterManager manager, int dynamicParameterId, int?tenantId)
            where TEntity : IEntity <TPrimaryKey>
        {
            var entity = new EntityDynamicParameter()
            {
                DynamicParameterId = dynamicParameterId,
                EntityFullName     = typeof(TEntity).FullName,
                TenantId           = tenantId
            };
            await manager.AddAsync(entity);

            return(entity);
        }
 public async Task Add(EntityDynamicParameterDto dto)
 {
     await _entityDynamicParameterManager.AddAsync(ObjectMapper.Map <EntityDynamicParameter>(dto));
 }
Exemplo n.º 3
0
 public static Task <EntityDynamicParameter> AddAsync <TEntity, TPrimaryKey>(this IEntityDynamicParameterManager manager, DynamicParameter dynamicParameter, int?tenantId)
     where TEntity : IEntity <TPrimaryKey>
 {
     return(manager.AddAsync <TEntity, TPrimaryKey>(dynamicParameter.Id, tenantId));
 }
Exemplo n.º 4
0
 public static Task <EntityDynamicParameter> AddAsync <TEntity>(this IEntityDynamicParameterManager manager, int dynamicParameterId, int?tenantId)
     where TEntity : IEntity <int>
 {
     return(manager.AddAsync <TEntity, int>(dynamicParameterId, tenantId));
 }