Hello,
I am wondering why LinqConnect doesn't allow a property name of a entity to be the same as a entity's class name?
Or is there a way to allow this?
Why can't you have a the same property name as the entity that it is in?
Re: Why can't you have a the same property name as the entity that it is in?
Although it is possible to create property with the same name as the class in Visual Basic, it is not a very good practice. For this reason, the C# language does not allow to do it, and many editors, too (such as the standard ADO.NET Entity Data Model Designer). Thus, in order to avoid the problems with sharing models between different projects and to maintain best practices we perform this validation, too.
Re: Why can't you have a the same property name as the entity that it is in?
Well I totally agree with you....ideally I would like to do that. But when dealing with external code / or equipment sometimes you have to do things certain ways that are not exactly the most ideal ways to do things.
Ok - so it sounds like there is no setting that would allow this.
If not that is fine I will just have to use the custom code I am currently using in that case...
Ok - so it sounds like there is no setting that would allow this.
If not that is fine I will just have to use the custom code I am currently using in that case...
Re: Why can't you have a the same property name as the entity that it is in?
Yes, unfortunately, there is no such setting in LinqConnect.ashlar64 wrote:Ok - so it sounds like there is no setting that would allow this.
If not that is fine I will just have to use the custom code I am currently using in that case...
If you have any further questions, feel free to contact us.