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

                _parent.alter = options => options.MappingFor(typeof(T));
            }
示例#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);
 }
示例#5
0
 /// <summary>
 /// Include the declarations from another MartenRegistry object
 /// </summary>
 /// <param name="registry"></param>
 public void Include(MartenRegistry registry)
 {
     alter = registry.Apply;
 }
示例#6
0
 public StoreOptions()
 {
     Events = new EventGraph(this);
     Schema = new MartenRegistry(this);
 }