D
dan
Hello,
i don't know whether you can answer to questions about issues in 3.5, but
i'll ask anyway.
i have this code:
var material = from materials in myDC.Materials
where materials.Name == materialName
select materials;
it is supposed to load 1 object.
how do i know if "material" is loaded or is null or smth like this?
or should i use foreach every time? because in this case, material is
IQueriable<Material>.
or i can write an extension method, but i have to write this for all my
domain objects...
so, how can i do it in a simpler way?
Thank you,
Dan
i don't know whether you can answer to questions about issues in 3.5, but
i'll ask anyway.
i have this code:
var material = from materials in myDC.Materials
where materials.Name == materialName
select materials;
it is supposed to load 1 object.
how do i know if "material" is loaded or is null or smth like this?
or should i use foreach every time? because in this case, material is
IQueriable<Material>.
or i can write an extension method, but i have to write this for all my
domain objects...
so, how can i do it in a simpler way?
Thank you,
Dan