|
|
Comments and Discussions
|
|
 |

|
It does not work well.
It does not consider whether the first letter tables field is case sensitive. The utility always regenerates in uppercase the field
---
Ok now see than problem is in sqlmetal.exe.... any solution?
|
|
|
|

|
I installed using your install program for Microsoft Visual Studio 2010 and saw your add-in.
Can it work with VWDE 2010 ?
|
|
|
|

|
Hi,
I never tried installing on VWDE but I think it should work. any issues?
Azeet
|
|
|
|
|

|
Glad it helped you
|
|
|
|

|
Hi,
Excelent piece of code. Does it should work with VB.NET. If it does, then i can't make it work.
I've VS.2010 and every time I apply the Customization, it brings me all the schema without my modifications.
My xml look like this:
="1.0" ="utf-8"
<Database Name="cts-pc.enterpriseadmindb.dbo" Class="FiData" Serialization="Unidirectional" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
<Table Name="dbo.CTSCFGIAE" Member="CTSCFGIAE">
<Type Name="CTSCFGIAE">
<Column Name="CodOper" Type="System.String" DbType="VarChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="Patente" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="RUC" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="Correl" Type="System.Int32" DbType="Int" CanBeNull="true" />
</Type>
</Table>
...
|
|
|
|

|
It does support VB.NET.i have tested couple of times.
can you show me your customization xml?
|
|
|
|

|
Hi Azeet,
My full xml is:
="1.0" ="utf-8"<Database Name="enterpriseadmindb" Class="FiData" Serialization="Unidirectional" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
<Connection Mode="AppSettings" ConnectionString="Data Source=cts-pc;Initial Catalog=enterpriseadmindb;Integrated Security=True" SettingsObjectName="CTS.FiSpool.Data.My.MySettings" SettingsPropertyName="enterpriseadmindbConnectionString1" Provider="System.Data.SqlClient" />
<Table Name="dbo.CTSFIBRAND" Member="FiBrands">
<Type Name="FiBrand">
<Column Name="IdBrand" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="Marca" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Association Name="FiBrand_FiModel" Member="FiModels" ThisKey="IdBrand" OtherKey="IdBrand" Type="FiModel" />
</Type>
</Table>
<Table Name="dbo.CTSFIXZ" Member="FiReps">
<Type Name="FiRep">
<Column Name="IdRep" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="IdHost" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Tipo" Type="System.String" DbType="VarChar(1)" CanBeNull="true" />
<Column Name="Fecha" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="Numero" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Association Name="FiRep_FiFact" Member="FiFacts" ThisKey="IdRep" OtherKey="IdRep" Type="FiFact" />
<Association Name="FiHost_FiRep" Member="FiHost" ThisKey="IdHost" OtherKey="IdHost" Type="FiHost" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.CTSFIFACT" Member="FiFacts">
<Type Name="FiFact">
<Column Name="IdFact" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="IdRep" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="IdHost" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="NumeroD" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="TipoFac" Type="System.String" DbType="VarChar(1)" CanBeNull="true" />
<Column Name="NumeroFi" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Column Name="Reimprimir" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
<Column Name="Orden" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="Fecha" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Association Name="FiHost_FiFact" Member="FiHost" ThisKey="IdHost" OtherKey="IdHost" Type="FiHost" IsForeignKey="true" />
<Association Name="FiRep_FiFact" Member="FiRep" ThisKey="IdRep" OtherKey="IdRep" Type="FiRep" IsForeignKey="true" />
<Association Name="SAFACT_FiFact" Member="SAFACT" ThisKey="TipoFac,NumeroD" OtherKey="TipoFac,NumeroD" Type="SAFACT" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.CTSFIHOST" Member="FiHosts">
<Type Name="FiHost">
<Column Name="IdHost" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="IdModel" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Alias" Type="System.String" DbType="VarChar(50) NOT NULL" CanBeNull="false" />
<Column Name="Port" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="Serial" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Column Name="Copias" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="Periodo" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="Machine" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
<Column Name="ShowVendedor" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
<Column Name="ShowCodProd" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
<Column Name="ShowComentarios" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
<Column Name="ShowFormaPago" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
<Column Name="ShowCredito" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
<Association Name="FiHost_FiHostPerm" Member="FiHostPerms" ThisKey="IdHost" OtherKey="IdHost" Type="FiHostPerm" />
<Association Name="FiHost_FiFact" Member="FiFacts" ThisKey="IdHost" OtherKey="IdHost" Type="FiFact" />
<Association Name="FiHost_FiRep" Member="FiReps" ThisKey="IdHost" OtherKey="IdHost" Type="FiRep" />
<Association Name="FiModel_FiHost" Member="FiModel" ThisKey="IdModel" OtherKey="IdModel" Type="FiModel" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.CTSFIHPERM" Member="FiHostPerms">
<Type Name="FiHostPerm">
<Column Name="IdHost" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="CodEsta" Type="System.String" DbType="VarChar(20) NOT NULL" CanBeNull="false" />
<Column Name="CodOper" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Association Name="FiHost_FiHostPerm" Member="FiHost" ThisKey="IdHost" OtherKey="IdHost" Type="FiHost" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.CTSFIMOD" Member="FiModels">
<Type Name="FiModel">
<Column Name="IdModel" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="IdBrand" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Modelo" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Column Name="HostClass" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Association Name="FiModel_FiHost" Member="FiHosts" ThisKey="IdModel" OtherKey="IdModel" Type="FiHost" />
<Association Name="FiBrand_FiModel" Member="FiBrand" ThisKey="IdBrand" OtherKey="IdBrand" Type="FiBrand" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.SAFACT" Member="SAFACTs">
<Type Name="SAFACT">
<Column Name="TipoFac" Type="System.String" DbType="VarChar(1) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NumeroD" Type="System.String" DbType="VarChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NroUnico" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsDbGenerated="true" CanBeNull="false" />
<Column Name="NroCtrol" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Column Name="Status" Type="System.String" DbType="VarChar(2)" CanBeNull="true" />
<Column Name="CodSucu" Type="System.String" DbType="VarChar(5)" CanBeNull="true" />
<Column Name="CodEsta" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="CodUsua" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="EsCorrel" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="CodConv" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="Signo" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="FechaT" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="OTipo" Type="System.String" DbType="VarChar(1)" CanBeNull="true" />
<Column Name="ONumero" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="TipoTra" Type="System.String" DbType="VarChar(1)" CanBeNull="true" />
<Column Name="NumeroC" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="NumeroT" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="NumeroR" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="FechaD1" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="NumeroD1" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="NumeroK" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="NumeroF" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="NumeroP" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="NumeroE" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="NumeroZ" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="EsExPickup" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="Moneda" Type="System.String" DbType="VarChar(5)" CanBeNull="true" />
<Column Name="Factor" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MontoMEx" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CodClie" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="CodVend" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="CodUbic" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="Descrip" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Direc1" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Direc2" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Direc3" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Pais" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Estado" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Ciudad" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Municipio" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="ZipCode" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Column Name="Telef" Type="System.String" DbType="VarChar(30)" CanBeNull="true" />
<Column Name="ID3" Type="System.String" DbType="VarChar(25)" CanBeNull="true" />
<Column Name="Monto" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoTax" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Fletes" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="TGravable" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="TExento" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CostoPrd" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CostoSrv" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="DesctoP" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="RetenIVA" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="FechaR" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="FechaI" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="FechaE" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="FechaV" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="MtoTotal" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Contado" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Credito" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelI" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelA" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelE" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelC" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelT" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelG" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CancelP" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Cambio" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="EsConsig" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="MtoExtra" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="ValorPtos" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Descto1" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="PctAnual" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoInt1" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Descto2" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="PctManejo" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoInt2" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="SaldoAct" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoPagos" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoNCredito" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoNDebito" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoFinanc" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="DetalChq" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="TotalPrd" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="TotalSrv" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="OrdenC" Type="System.String" DbType="VarChar(30)" CanBeNull="true" />
<Column Name="CodOper" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="NGiros" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="NMeses" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="MtoComiVta" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoComiCob" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoComiVtaD" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoComiCobD" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Notas1" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas2" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas3" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas4" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas5" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas6" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas7" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas8" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas9" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="Notas10" Type="System.String" DbType="VarChar(60)" CanBeNull="true" />
<Column Name="AutSRI" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="FechaSRI" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="NroEstable" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="PtoEmision" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Association Name="SAFACT_FiFact" Member="FiFacts" ThisKey="TipoFac,NumeroD" OtherKey="TipoFac,NumeroD" Type="FiFact" />
<Association Name="SAFACT_SAITEMFAC" Member="SAITEMFACs" ThisKey="TipoFac,NumeroD" OtherKey="TipoFac,NumeroD" Type="SAITEMFAC" />
<Association Name="SAFACT_SATAXVTA" Member="SATAXVTAs" ThisKey="TipoFac,NumeroD" OtherKey="TipoFac,NumeroD" Type="SATAXVTA" />
</Type>
</Table>
<Table Name="dbo.SAITEMFAC" Member="SAITEMFACs">
<Type Name="SAITEMFAC">
<Column Name="TipoFac" Type="System.String" DbType="VarChar(1) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NumeroD" Type="System.String" DbType="VarChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="OTipo" Type="System.String" DbType="VarChar(1)" CanBeNull="true" />
<Column Name="ONumero" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="NumeroE" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="Status" Type="System.String" DbType="VarChar(2)" CanBeNull="true" />
<Column Name="NroLinea" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NroLineaC" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CodItem" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="CodUbic" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="CodMeca" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="CodVend" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
<Column Name="Descrip1" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip2" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip3" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip4" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip5" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip6" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip7" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip8" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip9" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Descrip10" Type="System.String" DbType="VarChar(40)" CanBeNull="true" />
<Column Name="Refere" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="Signo" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="CantMayor" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Cantidad" Type="System.Decimal" DbType="Decimal(28,5)" CanBeNull="true" />
<Column Name="CantidadO" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Tara" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="ExistAntU" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="ExistAnt" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CantidadU" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CantidadC" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="CantidadA" Type="System.Decimal" DbType="Decimal(28,5)" CanBeNull="true" />
<Column Name="CantidadUA" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="TotalItem" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="Costo" Type="System.Decimal" DbType="Decimal(28,5)" CanBeNull="true" />
<Column Name="Precio" Type="System.Decimal" DbType="Decimal(28,5)" CanBeNull="true" />
<Column Name="Descto" Type="System.Decimal" DbType="Decimal(28,5)" CanBeNull="true" />
<Column Name="NroUnicoL" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="NroLote" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
<Column Name="FechaE" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="FechaL" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="FechaV" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="EsServ" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="EsUnid" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="EsFreeP" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="EsPesa" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="EsExento" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="UsaServ" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="DEsLote" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="DEsSeri" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="DEsComp" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Association Name="SAITEMFAC_SATAXITF" Member="SATAXITFs" ThisKey="TipoFac,NumeroD,NroLinea,NroLineaC" OtherKey="TipoFac,NumeroD,NroLinea,NroLineaC" Type="SATAXITF" />
<Association Name="SAFACT_SAITEMFAC" Member="SAFACT" ThisKey="TipoFac,NumeroD" OtherKey="TipoFac,NumeroD" Type="SAFACT" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.SATAXITF" Member="SATAXITFs">
<Type Name="SATAXITF">
<Column Name="TipoFac" Type="System.String" DbType="VarChar(1) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NumeroD" Type="System.String" DbType="VarChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NroLinea" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NroLineaC" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CodTaxs" Type="System.String" DbType="VarChar(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CodItem" Type="System.String" DbType="VarChar(15)" CanBeNull="true" />
<Column Name="Monto" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="TGravable" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoTax" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Association Name="SAITEMFAC_SATAXITF" Member="SAITEMFAC" ThisKey="TipoFac,NumeroD,NroLinea,NroLineaC" OtherKey="TipoFac,NumeroD,NroLinea,NroLineaC" Type="SAITEMFAC" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.SATAXVTA" Member="SATAXVTAs">
<Type Name="SATAXVTA">
<Column Name="TipoFac" Type="System.String" DbType="VarChar(1) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="NumeroD" Type="System.String" DbType="VarChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CodTaxs" Type="System.String" DbType="VarChar(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="Monto" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="MtoTax" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Column Name="TGravable" Type="System.Decimal" DbType="Decimal(28,4) NOT NULL" CanBeNull="false" />
<Association Name="SAFACT_SATAXVTA" Member="SAFACT" ThisKey="TipoFac,NumeroD" OtherKey="TipoFac,NumeroD" Type="SAFACT" IsForeignKey="true" />
</Type>
</Table>
</Database>
It has only certain tables of the schema, some with custom names, and all the associations bewteen them. When i ran the tool, it brings me all the other tables, and deletes the associations.
|
|
|
|

|
Hi,
if you choose the option "Create/Refresh" then the tool will replace your existing DBML with latest from database.if you dont want that to happen then you just need to use the option "Create Mapping Xml" from your existing DBML and then "Apply Customization".
And regarding deleting the foreign keys, it happens when you change the foreign key columns to enumerations.
Hope it helps
Azeet
|
|
|
|

|
Hi,
I can't make the plugin run on my machine.
I've Visual Studio 2010 Ultimate running on Windows 7 Enterprise N 64 bit.
Is there any limitation?
Thanks
|
|
|
|

|
I rebuild source and add "bin" folder to Visual Studio addins paths.
That make appear addin in VS 2010.
Now I've an exception on PATH variable:
---------------------------
Unhandled Exception
---------------------------
System.Exception: the path for sqlmetal.exe not found. Correct the environment variable(PATH) and try again.
at SqlMetalPlus.Connect.RefreshDBML(ProjectItem item) in C:\Users\a548133\Downloads\Software\LINQ\SqlMetalPlus_src\SqlMetalPlus\Connect.cs:line 965
at SqlMetalPlus.Connect.Exec(String CmdName, vsCommandExecOption ExecuteOption, Object& VariantIn, Object& VariantOut, Boolean& Handled) in C:\Users\a548133\Downloads\Software\LINQ\SqlMetalPlus_src\SqlMetalPlus\Connect.cs:line 283
|
|
|
|

|
You need to set the path to SqlMetal.exe in your PATH environment variable or you can specify the complete path in the dialog
|
|
|
|

|
There is no limitation.in fact i have VS2010 ultimate running on Windows 7 64bit.can you post any error message?
|
|
|
|
|

|
Glad it helped you
|
|
|
|
|

|
Felt pretty good but talks only basics, try to provide some new stuffs also
|
|
|
|

|
It seems that the sqlmetal path is not remembered between 2 runs. is it possible to do this?
Jg
|
|
|
|

|
Thanks.Its supposed to save the path in config file
If its not then,it must be a minor issue
Btw you dont need to specify the path if you set the PATH in enviroment variables
Azeet
|
|
|
|

|
This project helps me a lot!
|
|
|
|

|
Glad it helped you.
|
|
|
|

|
n2012 comes, in order to thank everyone, characteristic, novel style, varieties, low price and good quality, and the low sale price. Thank everyone
====( http://www.fullmalls.com )=====
====( http://www.fullmalls.com )=====
$33 True Religion jeans, Ed Hardy jeans,LV,Coogi jeans,Affliction jeans
$30 Air Jordan shoes,Shox shoes,Gucci,LV shoes
50%Discount winter fashion :Sandle,t-shirt,caps,jerseys,handbag and brand watches!!!
$15 Ed Hardy ,LV ,Gucci Bikini
$15 Polo, Ed Hardy, Gucci, LV, Lacoste T-shirts
$25 Coach,Gucci,LV,Prada,Juicy,Chanel handbag,
$10 Gucci,Ed Hardy sunglasses
$9 New Era caps.
give you the unexpected harvest
====( http://www.fullmalls.com )=====
====( http://www.fullmalls.com )=====
====( http://www.fullmalls.com )=====
====( http://www.fullmalls.com )=====
====( http://www.fullmalls.com )=====
====( http://www.fullmalls.com )=====
|
|
|
|

|
I would like to request the ApplyCustomAttributes be changed to work for .vb files as well as .cs files. SQLMetal detects the current language (cs or vb) and generates the designer.?? file accordingly. ApplycustomAttributes currently expects the .cs file.
|
|
|
|

|
i will try to implement that.
|
|
|
|

|
I have added support for VB.NET.I have sent the latest downloads to codeproject.it may take a while before they appear on codeproject.
Let me know if you face any issues.
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
This add-in adds easily accessible context menu commands to your DBML files to either apply custom changes or to refresh the whole DBML file with the latest changes from the database.
| Type | Article |
| Licence | CPOL |
| First Posted | 12 Jun 2009 |
| Views | 52,276 |
| Downloads | 1,988 |
| Bookmarked | 77 times |
|
|