QueryExpression sorgu=new QueryExpression (){
};
EntityCollection ec=null;
ec=service.RetrieveMultiple(sorgu);
EntityReferenceCollection co = new EntityReferenceCollection();
if (ec != null)
{
if (ec.Entities.Count > 0)
{
foreach (Entity item in ec.Entities)
{
co.Add(item.ToEntityReference());
}
return co;
}
else
{
return null;
}
}
Hiç yorum yok:
Yorum Gönder