public StoreOptions() { Events = new EventGraph(this); Schema = new MartenRegistry(); Transforms = new Transforms.Transforms(this); Storage = new StorageFeatures(this); }
public StoreOptions() { Events = new EventGraph(this); Schema = new MartenRegistry(this); Transforms = new Transforms.Transforms(this); var patching = new TransformFunction(this, PatchDoc, SchemaBuilder.GetJavascript(this, "mt_patching")); patching.OtherArgs.Add("patch"); Transforms.Load(patching); }
public DocumentMappingExpression(MartenRegistry parent) { _parent = parent; _parent.alter = options => options.MappingFor(typeof(T)); }
/// <summary> /// Include the declarations from another MartenRegistry object /// </summary> /// <param name="registry"></param> public void Include(MartenRegistry registry) { registry._alterations.Each(a => alter = a); }
/// <summary> /// Include the declarations from another MartenRegistry object /// </summary> /// <param name="registry"></param> public void Include(MartenRegistry registry) { alter = registry.Apply; }
public StoreOptions() { Events = new EventGraph(this); Schema = new MartenRegistry(this); }