2017-01-18 2 views
0

EntityFrameworkを使用するPOCO Generator v2.26.0を逆にすると、POCOを生成するときに.ttを変更して列の名前を変更する場所を見つけることができません。EntityFrameworkを停止する方法POCOジェネレータの名前を変更するのを元に戻しますか?

UpdateColumn = (Column column, Table table) => column; 

しかし、まだ列は、例えばから名前を変更します:私はそれは私が1行だけに更新したUpdateColumn、である疑いがあります「Batch_ID」を「BatchId」に設定します。

列名の変更を停止することなく、私はエラーを取得しています:

The data reader is incompatible with the specified 'DocumentExport.DataAccess.Databases.Batches.Batch'. A member of the type, 'BatchId', does not have a corresponding column in the data reader with the same name.

はどのようにワンストップの列は、POCO生成時に名前を変更しますか? database.ttで

答えて

1

UsePascalCase = false; // This will rename the generated C# tables & properties to use PascalCase. If false table & property names will be left alone. 

これは、列名を抑制する達成しながら、それはまた、テーブル名と、おそらく他のものに影響を与えました。

関連する問題