public static Quote GetQuote(IOrganizationService ser, Guid quoteid, ColumnSet columnset)
{
try
{
QueryExpression query = GetQueryExpressionSingle("quote", "quoteid", quoteid, columnset);
EntityCollection ec = ser.RetrieveMultiple(query);
if (ec != null && ec.Entities.Count == 1)
return (Quote)ec.Entities[0];
else
return new Quote();
}
catch (Exception ex)
{
FileLogHelper.LoggEx(ex, typeof(CrmManagerStatic), "public static Quote GetQuote(IOrganizationService ser, Guid quoteid, ColumnSet columnset)" + Environment.NewLine +
"QuoteId :" + CommonFunction.ToString(quoteid));
throw ex;
}
}
GetQueryExpressionSingle metodu
Hiç yorum yok:
Yorum Gönder