public ControllerObject(ControllerObject other) { other.CheckArgument(nameof(other)); contextOwner = false; Context = other.Context; }
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>; } }