| 
					
						 The Db.Configuration was not correctly configured ... and now it's working fine in MSSQL ... but when i try create tables in MySQL it don't generate the correct create command ...
 
 It's creating this comand:
 
 create table Marca (
   id int NOT NULL AUTO_INCREMENT unique,
    Descricao varchar not null,
    primary key (id)
 )
 
 but it don't put the length of varchar type ...
 
 create table Marca (
   id int NOT NULL AUTO_INCREMENT unique,
    Descricao varchar(100) not null,
    primary key (id)
 )
 
 My .hbm.xml mapping file has the attribute length:
 
 <?xml version="1.0" encoding="utf-8" ?>
 <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
 	<class name="Entity.Modelo, Carros" table="Modelo">
 		<id name="Id" type="Int32" unsaved-value="0">
 			<column name="Id" sql-type="int" not-null="true" unique="true" index="PK_Modelo"/>
 			<generator class="native" />
 		</id>
 		<property name="Descricao" type="String">
 			<column name="Descricao" length="100" sql-type="varchar" not-null="true"/>
 		</property>
 		<many-to-one name="Marca" class="Entity.Marca, Carros">
 			<column name="idMarca" sql-type="int" not-null="true" index="IX_Modelo"/>
 		</many-to-one>
 	</class>
 </hibernate-mapping>
 
 
 i'm doing something wrong ???
 
 Thanks,
 RWagnerVM 
					
  
						
					 |