protected NakedObjectsController(IFrameworkFacade facade, IIdHelper idHelper) { this.facade = facade; oidStrategy = facade.OidStrategy; this.idHelper = idHelper; }
public OrderService(IConfiguration cfg, IIdHelper idHelper) { _cfg = cfg; _idHelper = idHelper; _fileHost = _cfg.GetValue <string>("FileHost"); }
public PropertyContext(IIdHelper idHelper, IObjectFacade target, IAssociationFacade property, bool isEdit, PropertyContext parentContext = null) : base(idHelper, target) { Property = property; IsPropertyEdit = isEdit; IsEdit = isEdit; ParentContext = parentContext; }
static NHEntity() { var idType = typeof(TId); Type idHelperType; if (idType == typeof(string)) { // Special case for string, as identifiers are compared // ordinal case-insensitive. idHelperType = typeof(IdHelperForString); } else if (idType == typeof(int)) { // Special case for int as many identifiers are this type. // This class avoids boxing altogether. idHelperType = typeof(IdHelperForInt32); } else if (idType == typeof(long)) { // Special case for long as some identifiers are this type. // This class avoids boxing altogether. idHelperType = typeof(IdHelperForInt64); } else if (idType.IsValueType) { // Value types get an ID helper that does not involve boxing. idHelperType = typeof(IdHelperForValueType <>).MakeGenericType(typeof(TId)); } else { // ID helper type for classes that can have null value idHelperType = typeof(IdHelperForClassType <>).MakeGenericType(typeof(TId)); } IdHelper = (IIdHelper <TId>)Activator.CreateInstance(idHelperType); }
protected FeatureContext(IIdHelper idHelper, ObjectContext otherContext) : base(idHelper, otherContext) { }
public ParameterContext(IIdHelper idhelper, bool embeddedInObject, IObjectFacade target, IActionFacade action, IActionParameterFacade parameter, bool isEdit) : base(idhelper, embeddedInObject, target, action) { Parameter = parameter; IsParameterEdit = isEdit; }
public ParameterContext(IIdHelper idhelper, ParameterContext otherContext) : base(idhelper, otherContext) { Parameter = otherContext.Parameter; }
public OrderController(IOrderServices orderSrv, IIdHelper idHelper) { _orderSrv = orderSrv; _idHelper = idHelper; }
public HomeController(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) { }
public CustomControllerWrapper(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) { }
public AjaxControllerImpl(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) { }
protected GenericControllerImpl(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) {}
public GenericController(IFrameworkFacade surface, IIdHelper idHelper) : base(surface, idHelper) { }
protected FeatureContext(IIdHelper idHelper, IObjectFacade target) : base(idHelper, target) { }
public PropertyContext(IIdHelper idHelper, PropertyContext otherContext) : base(idHelper, otherContext) { ParentContext = otherContext.ParentContext; }
public ActionContext(IIdHelper idHelper, ActionContext otherContext) : base(idHelper, otherContext) { EmbeddedInObject = otherContext.EmbeddedInObject; Action = otherContext.Action; }
protected GenericControllerImpl(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) { }
public ActionContext(IIdHelper idHelper, bool embeddedInObject, IObjectFacade target, IActionFacade action) : base(idHelper, target) { EmbeddedInObject = embeddedInObject; Action = action; }
protected ObjectContext(IIdHelper idHelper, ObjectContext otherContext) { IdHelper = idHelper; Target = otherContext.Target; }
protected ObjectContext(IIdHelper idHelper, IObjectFacade target) { IdHelper = idHelper; Target = target; }
public AjaxController(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) {}
protected CustomController(IFrameworkFacade facade, IIdHelper idHelper) : base(facade, idHelper) { }