Hi there,
I was wondering if someone could help me with the following problem regarding inner join and a column with a space.
I have setup a test product such as:
class TestProduct {
private int _id;
public int ProductID {
get { return _id; }
set { _id = value; }
}
private string _name;
public string ProductName {
get { return _name; }
set { _name = value; }
}
private decimal _price;
public decimal UnitPrice {
get { return _price; }
set { _price = value; }
}
}
I use the following to get a result ( imagine that the Unit Price column in fact contained a space)
List<TestProduct> result = new
Select( Icon.IDColumn.QualifiedName, Icon.NameColumn.QualifiedName, Icon.UnitPriceColumn.QualifiedName)
.From(Northwind.Product.Schema)
.InnerJoin(Orders)
.ExecuteTypedList<TestProduct>();
With the above example say the unit price column contained a space [Unit Price]
Question:
How do I map that column name to my TestProduct class UnitPrice. At the moment this column always returns null.
TestProduct.UnitPrice = null?
Obviously my TestProduct property can't contain a space so I'm wondering how they can actually be mapped?
Regards Dotnetshadow