示例#1
0
 public EntityWrapper(IEntityAccessor <T> accessor, ITransactionContextBase context)
     : base(accessor)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
 }
示例#2
0
 public Wrapper(T entity, ITransactionContextBase context)
     : base(entity, context)
 {
 }
示例#3
0
 public EntityWrapper(T entity, ITransactionContextBase context)
     : this(new EntityAccessor <T>(entity), context)
 {
 }
 private static void ThrowErrorMessage(ITransactionContextBase context)
 {
     throw context.ErrorMessage("CUSTOM-ERROR-MESSAGE");
 }
 private static void ThrowErrorMessageWithArguments(ITransactionContextBase context)
 {
     throw context.ErrorMessage("CUSTOM-ERROR-MESSAGE-{0}-{1}", "One", "Two");
 }
示例#6
0
 public static TW Create(T entity, ITransactionContextBase context)
 => (TW)Activator.CreateInstance(typeof(TW), entity, context);
示例#7
0
 public static TW Create(IEntityAccessor <T> accessor, ITransactionContextBase context)
 => (TW)Activator.CreateInstance(typeof(TW), accessor, context);
 public TestWrapper(IEntityAccessor <Entity> accessor, ITransactionContextBase context)
     : base(accessor, context)
 {
 }
 public TestGenericWrapper(IEntityAccessor <T> accessor, ITransactionContextBase context)
     : base(accessor, context)
 {
 }
 public ConvertDerivedTestWrapper(T entity, ITransactionContextBase context)
     : base(entity, context)
 {
 }
 public TestWrapper(Entity entity, ITransactionContextBase context)
     : base(entity, context)
 {
 }
 public XtsRelatedEntityWrapper(xts_relatedentity entity, ITransactionContextBase context)
     : base(entity, context)
 {
 }
 public XtsEntityWrapper(xts_entity entity, ITransactionContextBase context)
     : base(entity, context)
 {
 }
示例#14
0
 public static T GetRequest <T>(this ITransactionContextBase context)
     where T : OrganizationRequest
 => context.PluginExecutionContext.GetRequest <T>();
示例#15
0
 public TodayDateValueProvider(ITransactionContextBase context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     UserId   = context.PluginExecutionContext.InitiatingUserId;
 }
示例#16
0
 public FormattedValueCurrentAccessor(T target, T current, ITransactionContextBase context)
     : base(current)
 {
     _input   = target ?? throw new ArgumentNullException(nameof(target));
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }