Call() public static method

public static Call ( Arebis _host, IZetboxContext ctx, string prefix, IEnumerable properties, bool needsConcurrency ) : void
_host Arebis
ctx IZetboxContext
prefix string
properties IEnumerable
needsConcurrency bool
return void
コード例 #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);
 }