Hi
i have class file AppEnum.cs
public Enum Status
{
Approve =1 ,
Completed =2
}
in linq quer while joining 2 table how to use.
I have table called mapping table with colum status as integer, name as string,Id As Guid
Another table sortedFile table with columns Id As Guid,Name etc
private readonly IRepository<mappiing> mapping
private readonly IRepository<sortedFile> sorted
public class Mapper : IRepository<mappiing>, IRepository<sortedFile>
{
var str = from mapping.GetAll() innerjoin sort.GeAll()
where mapping.Status == App.Enum.Status --- fails here because App.Enum.Status is string. mapping.Status is interger
select sortedFile
{
Name = s. Name
}
}