public DynamicEntityPropertyValueAppService(
     IDynamicEntityPropertyValueManager dynamicEntityPropertyValueManager,
     IDynamicPropertyValueManager dynamicPropertyValueManager,
     IDynamicEntityPropertyManager dynamicEntityPropertyManager,
     IDynamicEntityPropertyDefinitionManager dynamicEntityPropertyDefinitionManager)
 {
     _dynamicEntityPropertyValueManager      = dynamicEntityPropertyValueManager;
     _dynamicPropertyValueManager            = dynamicPropertyValueManager;
     _dynamicEntityPropertyManager           = dynamicEntityPropertyManager;
     _dynamicEntityPropertyDefinitionManager = dynamicEntityPropertyDefinitionManager;
 }
Example #2
0
 public ContractAppService(
     IRepository <Contract, Guid> contractRepository,
     IDynamicEntityPropertyManager dynamicEntityPropertyManager,
     IDynamicEntityPropertyValueManager dynamicEntityPropertyValueManager,
     IDynamicPropertyValueManager dynamicPropertyValueManagerManager, //动态属性值管理器
     IDynamicPropertyManager dynamicPropertyManager                   //动态属性管理器
     )
 {
     _contractRepository                 = contractRepository;
     _dynamicEntityPropertyManager       = dynamicEntityPropertyManager;
     _dynamicEntityPropertyValueManager  = dynamicEntityPropertyValueManager;
     _dynamicPropertyValueManagerManager = dynamicPropertyValueManagerManager;
     _dynamicPropertyManager             = dynamicPropertyManager;
 }
 public static Task <List <DynamicEntityPropertyValue> > GetValuesAsync <TEntity>(this IDynamicEntityPropertyValueManager manager, string entityId, string propertyName)
     where TEntity : IEntity <int>
 {
     return(manager.GetValuesAsync <TEntity, int>(entityId: entityId, propertyName: propertyName));
 }
 public DynamicEntityPropertyValueManager_Tests()
 {
     _dynamicEntityPropertyValueManager = Resolve <IDynamicEntityPropertyValueManager>();
 }
 public static Task <List <DynamicEntityPropertyValue> > GetValuesAsync <TEntity, TPrimaryKey>(this IDynamicEntityPropertyValueManager manager, string entityId, string propertyName)
     where TEntity : IEntity <TPrimaryKey>
 {
     return(manager.GetValuesAsync(entityFullName: typeof(TEntity).FullName, entityId: entityId, propertyName: propertyName));
 }
 public static List <DynamicEntityPropertyValue> GetValues <TEntity, TPrimaryKey>(this IDynamicEntityPropertyValueManager manager, string entityId)
     where TEntity : IEntity <TPrimaryKey>
 {
     return(manager.GetValues(entityFullName: typeof(TEntity).FullName, entityId: entityId));
 }
 public static Task <List <DynamicEntityPropertyValue> > GetValuesAsync <TEntity>(this IDynamicEntityPropertyValueManager manager, string entityId, DynamicProperty dynamicProperty)
     where TEntity : IEntity <int>
 {
     return(manager.GetValuesAsync <TEntity>(entityId: entityId, dynamicPropertyId: dynamicProperty.Id));
 }
 public static List <DynamicEntityPropertyValue> GetValues <TEntity, TPrimaryKey>(this IDynamicEntityPropertyValueManager manager, string entityId, DynamicProperty dynamicProperty)
     where TEntity : IEntity <TPrimaryKey>
 {
     return(manager.GetValues <TEntity, TPrimaryKey>(entityId: entityId, dynamicPropertyId: dynamicProperty.Id));
 }
 public static List <DynamicEntityPropertyValue> GetValues <TEntity>(this IDynamicEntityPropertyValueManager manager, string entityId, int dynamicPropertyId)
     where TEntity : IEntity <int>
 {
     return(manager.GetValues <TEntity, int>(entityId: entityId, dynamicPropertyId: dynamicPropertyId));
 }