Ejemplo n.º 1
0
 public StoreOptions()
 {
     Events     = new EventGraph(this);
     Schema     = new MartenRegistry();
     Transforms = new Transforms.Transforms(this);
     Storage    = new StorageFeatures(this);
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
            public DocumentMappingExpression(MartenRegistry parent)
            {
                _parent = parent;

                _parent.alter = options => options.MappingFor(typeof(T));
            }
Ejemplo n.º 4
0
 /// <summary>
 /// Include the declarations from another MartenRegistry object
 /// </summary>
 /// <param name="registry"></param>
 public void Include(MartenRegistry registry)
 {
     registry._alterations.Each(a => alter = a);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Include the declarations from another MartenRegistry object
 /// </summary>
 /// <param name="registry"></param>
 public void Include(MartenRegistry registry)
 {
     alter = registry.Apply;
 }
Ejemplo n.º 6
0
 public StoreOptions()
 {
     Events = new EventGraph(this);
     Schema = new MartenRegistry(this);
 }