상속: Zetbox.Generator.ResourceTemplate
예제 #1
0
        public override void Generate()
        {
#line 36 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
            if (isList)
            {
#line 37 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
                this.WriteObjects("        <!-- CompoundObjectProperty IsList -->\r\n");
                this.WriteObjects("        <set name=\"", propName, "\" inverse=\"true\" batch-size=\"100\">\r\n");
                this.WriteObjects("            <key column=\"`", ceReverseKeyColumnName, "`\" />\r\n");
                this.WriteObjects("            <one-to-many ", ceClassAttr, " />\r\n");
                this.WriteObjects("        </set>\r\n");
#line 42 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
            }
            else
            {
#line 43 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
                this.WriteObjects("        <!-- CompoundObjectProperty isValue -->\r\n");
                this.WriteObjects("        <component name=\"", propName, "\" ", valueClassAttr, ">\r\n");
#line 45 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
                PropertiesHbm.Call(Host, ctx, prefix + columnName + "_", properties, false);
#line 46 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
                this.WriteObjects("        </component>\r\n");
#line 47 "P:\zetbox\Zetbox.DalProvider.NHibernate.Generator\Templates\Mappings\CompoundObjectPropertyHbm.cst"
            }
        }
예제 #2
0
 protected virtual void ApplyPropertyDefinitions(List <Property> properties)
 {
     PropertiesHbm.Call(Host, ctx, String.Empty, properties, needsConcurrency);
 }
예제 #3
0
 protected virtual void ApplyPropertyDefinitions(List <Property> properties)
 {
     PropertiesHbm.Call(Host, ctx, String.Empty, properties, false);
 }