Skip to content

Commit

Permalink
temp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza-Noei committed Jan 4, 2024
1 parent 45fae3c commit c4fe3d7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;

namespace BSN.Commons.Orm.EntityFrameworkCore
Expand Down Expand Up @@ -69,6 +70,7 @@ private static void MapAllReadonlyProperties<T>(Microsoft.EntityFrameworkCore.Me
IEnumerable<PropertyInfo> properties = from property in typeof(T).GetProperties()
where property.CanWrite == false
&& property.GetCustomAttribute<NotMappedAttribute>() == null
&& property.GetMethod.GetCustomAttribute<CompilerGeneratedAttribute>() != null
&& !ignores.Any(ignoreProperty => ignoreProperty == property.Name)
&& !navigations.Contains(property.Name)
select property;
Expand Down

0 comments on commit c4fe3d7

Please sign in to comment.