/// <summary> /// Adds the store. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="name">The name.</param> /// <param name="crud">The crud.</param> /// <param name="remoteId">The remote id.</param> /// <param name="subRemote">if set to <c>true</c> [sub remote].</param> /// <param name="own">if set to <c>true</c> [own].</param> public void AddStore <T>(String name, IDextopReadProxy <T> crud, String remoteId = null, bool subRemote = true, bool own = true) where T : class { var meta = Context.ModelManager.GetModelMeta(typeof(T)); var proxy = new DextopReadProxyAdapter <T>(crud); AddRemotableComponent(name + "Proxy", new DextopProxy(proxy, meta), remoteId, subRemote, own); }
public DextopReadProxyAdapter(IDextopReadProxy <T> proxy) { if (proxy == null) { throw new ArgumentNullException("proxy"); } this.proxy = proxy; }