Static methods for TableName and TableSchema


Author
Message
Derek Price
Derek Price
StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)StrataFrame Novice (119 reputation)
Group: Forum Members
Posts: 51, Visits: 376
Occasionally we have to hand-craft SQL and it would be nice if we could get the TableName and TableSchema from the Business Object as a static call rather than instantiate the BO just to get a string.

Forgive the contrived example:



var myBO = new MyBO();

String.Format("MyBO TableName: {0}, myBO.TableName);





String.Format("MyBO TableName: {0}, MyBO.TableName);




Thanks,

Derek
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I've run into a need for this sort of thing also. Along the same lines, the AllFieldNames property would be useful also.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search