I figured out a solution but what i exactly looking for. Since i am using Entity Framework 5, It generates a partial class for each database table. for above example, MyMath class will look like :
public partial class MyMath
{
public int X { get; set; }
public int Y { get; set; }
}
Since my math is a partial class, I added another Class and added this codes :
public partial class MyMath
{
public int AddXAndY
{
get { this.X + this.Y }
set { }
}
}
And i set DatapropertyName of column to "AddXAndY". And I's done. just not in the way i wanted.