This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello I have such Table: CREATE TABLE `ss_products` ( ENGINE=MyISAM AUTO_INCREMENT=548 CHARACTER SET 'cp1251' COLLATE 'cp1251_general_ci'; I cannot Insert Data In it because your's library remove the "_" from fields.
|
|
|
I founded how to fix it - rename in class generated field: [Serializable] private System.Nullable<int> _inStock; // Fix: private System.Nullable<int> _in_Stock;
And Fix Errors in getter / setter of field: public System.Nullable<int> in_stock
I think this is bug in Model Generator |
|
|
Hello zabr, Rather than editing the generated code (which will be overwritten when you next change the model), we suggest you specify these changes in the model itself. In the designer, select the SsProduct entity and go to the Properties window. Change the Identity Column Name property to productId if the designer has not already done that for you. Then select the InStock property and, in the Properties window, set the Column Name to in_stock. Do the same for any other columns that need it. (That said, the designer should be spotting this and setting the Column Name for you when you drag the MySQL table on, so there may be a bug in that part of the designer. I will look into this.) |
|
|
Thanks, If I would have some iterations of project i will do as you say :) Спасибо :) |
|