This question is locked. New answers and comments are not allowed.
I just have written a suggestion: http://www.telerik.com/community/forums/orm/feature-requests/scalar-function-column.aspx
Is any way in current version to do this, can I somehow handle the query - i want to make the injection (based on field attribute) in to the select query
Original post:
writing partial classes is cool, because we can add custom property:
public partial class Product
{
public
There is a problem with such kind of fields: RIA cannot perform SQL operation (sorting, grouping and filtering) with it.
It would be great, if we can write just a field:
public partial class Product
{
[Telerik.OpenAccess.ExpressionField<Product>(product=>product.User.Login.Trim)]
public
And in SilverLight RIA DataContext class it would be:
public string UserName
{
get
{
return _userName; // wich was calculated on server before sending to client
}
}
Is any way in current version to do this, can I somehow handle the query - i want to make the injection (based on field attribute) in to the select query
Original post:
writing partial classes is cool, because we can add custom property:
public partial class Product
{
public
string
UserName
{
get
{
return
User.Login.Trim();
}
}
}
There is a problem with such kind of fields: RIA cannot perform SQL operation (sorting, grouping and filtering) with it.
It would be great, if we can write just a field:
public partial class Product
{
[Telerik.OpenAccess.ExpressionField<Product>(product=>product.User.Login.Trim)]
public
string
Name;
}And in SilverLight RIA DataContext class it would be:
public string UserName
{
get
{
return _userName; // wich was calculated on server before sending to client
}
}