Example #1
0
        public ControllerObject(ControllerObject other)
        {
            other.CheckArgument(nameof(other));

            contextOwner = false;
            Context      = other.Context;
        }
Example #2
0
        static partial void CreateController <C>(ControllerObject controllerObject, ref IControllerAccess <C> controller) where C : IIdentifiable
        {
            controllerObject.CheckArgument(nameof(controllerObject));

            if (typeof(C) == typeof(CashCow.Contracts.Persistence.CashCow.ICashEvent))
            {
                controller = new Controllers.Persistance.CashEventController(controllerObject) as IControllerAccess <C>;
            }
        }