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)); }
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)); }
public static Task <EntityDynamicParameter> AddAsync <TEntity>(this IEntityDynamicParameterManager manager, int dynamicParameterId, int?tenantId) where TEntity : IEntity <int> { return(manager.AddAsync <TEntity, int>(dynamicParameterId, tenantId)); }