You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thx for posting this utility/tool! Just had one issue when trying to use it...getting compile error with this source code.
It looks like you may be missing the code for the extension method GetElementsResult()?
The text was updated successfully, but these errors were encountered:
you can replace this line KeyValuePair<PropertyInfo, DataMemberAttribute>[] pairs = typeof(TEntity).GetElementsResult().ToArray();
with this KeyValuePair<PropertyInfo, DataMemberAttribute>[] pairs = typeof(TEntity).GetProperties().Select(x => new KeyValuePair<PropertyInfo, DataMemberAttribute>(x, (DataMemberAttribute)x.GetCustomAttribute(typeof(DataMemberAttribute)))).ToArray();
Thx for posting this utility/tool! Just had one issue when trying to use it...getting compile error with this source code.
It looks like you may be missing the code for the extension method GetElementsResult()?
The text was updated successfully, but these errors were encountered: