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
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