user1220461
user1220461

Reputation: 81

ISingleResult and IEnumerable

Can anyone explain what is ISingleResult and what is the difference between ISingleResult and IEnumerable. And when should we use it?.Please Explain this code.

public ISingleResult<CityMaster> SelectCityMaster()
    {
        try
        {
            return _ObjLinq.SelectCityMaster();
        }
        catch { throw; }
    }

Upvotes: 3

Views: 515

Answers (1)

clearpath
clearpath

Reputation: 956

It's a Linq2Sql thing. Basically, it says that the query will return one table, not two or three.

Upvotes: 3

Related Questions