home recent topics recent posts search register faq   AspNetForum v.4.8.2.0

Huagati Systems Support Forum :: Forum

user:
psw:
| lost password
3/23/2010 8:55:36 PM
phil
Posts 2
Hi,

just trying your tool for the first time. It's exactly what I was looking for but I have a few problem.

I get the impression from the 'Entity Members' tab that two character endings like 'ID' would be converted to 'Id'. They are sometimes, but mostly not.
I also get the impression that leading entity names should be removed. Again, doesn't seem to work, for example COMPANY.COMPANY_ID (the PK) is converted to Company.CompanyID. I would like Company.Id.
Also, COMPANY_ALIAS is incorrectly singularized to CompanyAlia, and ALIAS_ID is converted to Aliasid, not AliasId or just Id.
Worst of all after running 'standardize class and member names' a few times, all associations disappeared from the model.

Regards,
Phil Lee

Attachments: Capture.PNG Capture1.PNG
3/26/2010 6:01:57 PM
phil
Posts 2
Looks like I was just having 'newbie' problems.
If I select Base Name: 'Current Name' then properties are renamed as I was expecting. If I select 'database object name' they're not.
Associations seem to disappear from the Linq to SQL model, but will reappear if I move one of the tables.

'Alias' is wrongly renamed to 'Alia' in both Linq to SQL and in EF V4. Are you using the pluralization service (and is it a bug in that)?

Here's a real problem. In Linq to Sql and VS2008, the tool can remove a suffix and end up with two properties with the same name and then the .dbml file won't the load.
This problem doesn't happen in EF and VS2010, I then get Prop and Prop1.
pages: 1
|