Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> Table field name
 

Pages: 1
LLBLGen Pro Runtime Framework
Table field name
Page:1/1 

  Print all messages in this thread  
Poster Message
Stoop
User



Location:
Reno, Nevada
Joined on:
28-Feb-2004 12:01:28
Posted:
66 posts
# Posted on: 06-Mar-2005 10:00:10.  
Hi

Probably a dumb question, but I can't seem to hit on how to do it...

How does one get the original source table field name as a string?

What I mean is this: In SQL Server there is a field named, for example, "Customer_FN". In LLgen, this is given the field name in the designer "CustomerFirstName". I need in my code access to the string value "Customer_FN"...

Thx
Steve
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37313 posts
# Posted on: 06-Mar-2005 10:59:28.  
In selfservicing, you do:
string fieldName = entity.Fields["CustomerFirstName"].SourceColumnName;

In adapter, you have to derive a class from DataAccessAdapter, add a method there which accepts an entity field and call base.GetFieldPersitenceInfo(field), which returns a IFieldPersistenceInfo object, which also has a SourceColumnName property.


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pages: 1  


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

Version: 2.1.12172008 Final.