Skip to content
Permalink
Browse files

No commit message

  • Loading branch information...
zhk0603 committed Jan 18, 2018
1 parent a6cb134 commit 7248457065c14ffab53950fac28f2daaf16f125f
Showing with 4 additions and 3 deletions.
  1. +2 −1 src/Ixq.Core/Entity/IEntityMetadata.cs
  2. +2 −2 src/Ixq.Web.Mvc/Web/Mvc/EntityMetadata.cs
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Reflection;

namespace Ixq.Core.Entity
@@ -21,7 +22,7 @@ public interface IEntityMetadata
/// <summary>
/// 获取实体所有的公共属性。
/// </summary>
PropertyInfo[] EntityPropertyInfos { get; }
IEnumerable<PropertyInfo> EntityPropertyInfos { get; }

/// <summary>
/// 获取实体在列表中的属性元数据。
@@ -20,7 +20,7 @@ namespace Ixq.Web.Mvc
public class EntityMetadata : IEntityMetadata
{
private static readonly object LockObj = new object();
private PropertyInfo[] _entityPropertys;
private IEnumerable<PropertyInfo> _entityPropertys;
private IEntityPropertyMetadata[] _propertyMetadatas;

/// <summary>
@@ -125,7 +125,7 @@ public IEntityPropertyMetadata[] PropertyMetadatas
/// <summary>
/// 获取实体所有的公共属性。
/// </summary>
public PropertyInfo[] EntityPropertyInfos
public IEnumerable<PropertyInfo> EntityPropertyInfos
=> _entityPropertys ?? (_entityPropertys = DtoType.GetProperties());

/// <summary>

0 comments on commit 7248457

Please sign in to comment.
You can’t perform that action at this time.