English 中文(简体)
在Linq 和Kum 实行单一等级制
原标题:Disabling automatic pluralization in Linq to SQL Classes for a single class only

I have a single table name with an irregular plural (the plural is the same as the singular). Is there any way to disable the automatic pluralization (Account = DB.Accounts) for that single table while retaining the feature for the others?

问题回答

你们需要将LINQ的“Pluralize”名称与设计师分开。

采用这些工具——> Options-> Database Tool-> O/R Designer,并将名称的多元化改为伪造。

然后,你需要重新调整项目,并处理命名问题。

Linq tokou: 我如何从更名为时停止汽车产生的物体名称?

如果你真的只担心某个类别,那么,我就让《框架》将名称多元化,然后简单地人工排除了你所担心的那类人的多样性。

我认为,你可以使用纯林克2SQL这样做。

关于实体Folmeowrk + T4模板,以生成Linq 2实体,你可以定制一个T4模板,以控制复数化,执行自己的规则例外。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签