Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > FAQ > General FAQ> My code won't compile when I use names similar to properties in the base class
 

Pages: 1
General FAQ
My code won't compile when I use names similar to properties in the base class
Page:1/1 

  Print all messages in this thread  
Poster Message
Aglaia
LLBLGen Pro Team



Location:
Scheveningen, The Netherlands
Joined on:
07-Sep-2003 21:16:00
Posted:
533 posts
# Posted on: 21-Aug-2007 14:20:15.  
Question:
When I give a field mapped on a relation or a field in one of my entities a name similar to a property exposed in the base classes (for example 'Fields'), my code won't compile. How can this be?

Solution:
All code generated by LLBLGen Pro, which thus contains your project specific names and values, in fact customizes generic code compiled into the ORMSupport classes. This means that if you name a field like 'Fields' it will be generated as a property 'Fields' in your entity class, and by that hide the Fields property of the EntityBase(2) class. This is by design. To work around this, rename your field so it won't clash with the property in the base class.
Aglaia Kuipers, The LLBLGen Pro Team

Join the LLBLGen Pro support team!
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.