public EntityWrapper(IEntityAccessor <T> accessor, ITransactionContextBase context) : base(accessor) { Context = context ?? throw new ArgumentNullException(nameof(context)); }
public Wrapper(T entity, ITransactionContextBase context) : base(entity, context) { }
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"); }
public static TW Create(T entity, ITransactionContextBase context) => (TW)Activator.CreateInstance(typeof(TW), entity, context);
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) { }
public static T GetRequest <T>(this ITransactionContextBase context) where T : OrganizationRequest => context.PluginExecutionContext.GetRequest <T>();
public TodayDateValueProvider(ITransactionContextBase context) { _context = context ?? throw new ArgumentNullException(nameof(context)); UserId = context.PluginExecutionContext.InitiatingUserId; }
public FormattedValueCurrentAccessor(T target, T current, ITransactionContextBase context) : base(current) { _input = target ?? throw new ArgumentNullException(nameof(target)); _context = context ?? throw new ArgumentNullException(nameof(context)); }