public void Apply(FluentNHibernate.Conventions.Instances.IManyToManyCollectionInstance instance)
 {
     if (instance.OtherSide == null)
     {
         instance.Table(
            string.Format(
                "{0}To{1}",
                instance.EntityType.Name + "_Id",
                instance.ChildType.Name + "_Id"));
     }
     else
     {
         instance.Inverse();
     }
     instance.Cascade.All();
 }
Exemplo n.º 2
0
 public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
 {
     instance.Table(instance.EntityType.Name.InflectTo().Pluralized);
 }
Exemplo n.º 3
0
 public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
 {
     instance.Table(Inflector.Net.Inflector.Pluralize(instance.EntityType.Name));
 }
Exemplo n.º 4
0
        public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
        {
            instance.Table(instance.EntityType.Name);

        }
Exemplo n.º 5
0
 public void Apply( FluentNHibernate.Conventions.Instances.IClassInstance instance )
 {
     // TODO: consider using a valid inflector here
     // for correct english names
     instance.Table(instance.EntityType.Name + "s");
 }
Exemplo n.º 6
0
 public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
 {
     instance.Table("[{0}]".FormatWith(instance.EntityType.Name));
     instance.Schema("dbo");
 }
Exemplo n.º 7
0
 public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
 {
     string name = instance.EntityType.FullName.Replace("Gms.Domain.", "").Replace(".", "_");
     instance.Table(name.InflectTo().Pluralized);
     //instance.Table(instance.EntityType.Name.InflectTo().Pluralized);
 }
Exemplo n.º 8
0
 public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
 {
     var tableName = instance.EntityType.Name;
     tableName = ConventionsUtilities.CamelCaseToUpperCaseWithUnderscoreSeparator(tableName);
     instance.Table(TABLE_PREFIX + tableName);
 }
        public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
        {
            string typeName = instance.EntityType.Name;

            instance.Table(typeName.MakePlural());
        }
Exemplo n.º 10
0
        public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
        {
            string typeName = instance.EntityType.Name;

            instance.Table(Inflector.Inflector.Pluralize(typeName));
        }
Exemplo n.º 11
0
 public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance)
 {
     // Make the table the plural version of the entity's name
     instance.Table(Inflector.Pluralize(instance.EntityType.Name));
 }
Exemplo n.º 12
0
			public void Apply(FluentNHibernate.Conventions.Instances.IClassInstance instance) {
				instance.Table(MvcApplication.Config("table.Prefix") + instance.EntityType.Name);
			}