Ejemplo n.º 1
0
        public override void Visit(TuplizerMapping mapping)
        {
            var writer    = serviceLocator.GetWriter <TuplizerMapping>();
            var filterXml = writer.Write(mapping);

            document.ImportAndAppendChild(filterXml);
        }
Ejemplo n.º 2
0
        public ClassMap <T> Tuplizer(TuplizerMode mode, Type tuplizerType)
        {
            tuplizerMapping      = new TuplizerMapping();
            tuplizerMapping.Mode = mode;
            tuplizerMapping.Type = new TypeReference(tuplizerType);

            return(this);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Configures the tuplizer for this entity. The tuplizer defines how to transform
        /// a Property-Value to its persistent representation, and viceversa a Column-Value
        /// to its in-memory representation, and the EntityMode defines which tuplizer is in use.
        /// </summary>
        /// <param name="mode">Tuplizer entity-mode</param>
        /// <param name="tuplizerType">Tuplizer type</param>
        public TuplizerPart Tuplizer(TuplizerMode mode, Type tuplizerType)
        {
            tuplizerMapping      = new TuplizerMapping();
            tuplizerMapping.Mode = mode;
            tuplizerMapping.Type = new TypeReference(tuplizerType);

            return(new TuplizerPart(tuplizerMapping)
                   .Type(tuplizerType)
                   .Mode(mode));
        }
 public virtual void Visit(TuplizerMapping mapping)
 {
 }
 public virtual void ProcessTuplizer(TuplizerMapping tuplizerMapping)
 {
 }
 public virtual void Visit(TuplizerMapping mapping)
 {
     
 }
 public virtual void ProcessTuplizer(TuplizerMapping tuplizerMapping)
 {
     
 }
Ejemplo n.º 8
0
 public TuplizerPart(TuplizerMapping mapping)
 {
     this.mapping = mapping;
 }