Determining the Name of the Table Being Queried RRS feed

  • Question

  • We have a method (shown, in part, below) that retrieves a List of entities by entity property name and property value. My question is this. How can we determine the name of the underlying table being queried? I don't see how it can be done with the 'table' object shown below.


    public static List<TEntity> GetByPropertyName<TEntity>(DatabaseContext database, string propertyName, string propertyValue) where TEntity : class


    var table = database.GetTable<TEntity>();

    Monday, October 26, 2009 5:11 PM


All replies