Sorry for my ignorrance but you can tell from my question I am a beginner with llbl. I want to check if an entry in database exists, so I worte this code
MyEntity entity = new MyEntity();
entity.FetchUsingPK(someID);
if ( entity == null ) Console.WriteLine("this entry does not exists in db");
However even if I do not have this particular row present in db table, entity is still not null ( probably I have instantiate the object itself and FetchUsingPK does not turn it to null). What is the best way of doing this type of check?