static void SetDateTimeData(string fieldName, string condition, ref Entity enDeliver)
{
if (condition != null)
{
enDeliver[fieldName] = Convert.ToDateTime(condition);
}
else
{
DateTime? dt = null;
enDeliver[fieldName] = dt;
}
}
static void SetOptionSetValueData(string fieldName, int condition, ref Entity enDeliver)
{
if (condition != 0)
{
enDeliver[fieldName] = new OptionSetValue(condition);
}
else
{
enDeliver[fieldName] = null;
}
}
static void SetMoneyData(string fieldName, string condition, ref Entity enDeliver)
{
if (condition!=null)
{
enDeliver[fieldName] = new Money(Convert.ToDecimal(condition) );
}
else
{
enDeliver[fieldName] = null;
}
}
【Dynamics 365】服务器端赋值时间类型、选项集、金钱为空
最新推荐文章于 2021-11-22 16:44:32 发布