StrataFrame Forum

Static methods for TableName and TableSchema

http://forum.strataframe.net/Topic22016.aspx

By Derek Price - 2/18/2009

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
By Greg McGuffey - 2/18/2009

I've run into a need for this sort of thing also. Along the same lines, the AllFieldNames property would be useful also.