public static EntityDynamicParameter Add <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 }; manager.Add(entity); return(entity); }
public static EntityDynamicParameter Add <TEntity, TPrimaryKey>(this IEntityDynamicParameterManager manager, DynamicParameter dynamicParameter, int?tenantId) where TEntity : IEntity <TPrimaryKey> { return(manager.Add <TEntity, TPrimaryKey>(dynamicParameter.Id, tenantId)); }
public static EntityDynamicParameter Add <TEntity>(this IEntityDynamicParameterManager manager, int dynamicParameterId, int?tenantId) where TEntity : IEntity <int> { return(manager.Add <TEntity, int>(dynamicParameterId, tenantId)); }