简体   繁体   中英

singularize table name when create EDMX file

I have a database table like ApplicationName_T_Attachments once I generate edmx its create table class as ApplicationName_T_Attachments . but I want to create a table as ApplicationName_T_Attachment . How can I do this ?

While creating your model designer please check this option Pluralize or singularize generated object names (see in picture). If you will hover your mouse over this line and check box it will show you "makes name in the model more descriptive and accurate by ensuring that Entity type names are singular" means this will automatically singularize all your table class name.

请在图片中检查

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM