Example #1
0
 /// <summary>
 /// 获取多对一关联中的关联父对象
 /// </summary>
 /// <typeparam name="T">关联父对象类型</typeparam>
 /// <param name="parentPropertyName">关联父对象对应的成员属性名称</param>
 /// <returns>关联父对象</returns>
 public T GetParent <T>(string parentPropertyName) where T : IModelBase
 {
     return(ParentModel.GetParent <T>(parentPropertyName));
 }
Example #2
0
 /// <summary>
 /// 获取多对一关联中的关联父对象
 /// </summary>
 /// <typeparam name="T">关联父对象类型</typeparam>
 /// <returns>关联父对象</returns>
 public T GetParent <T>() where T : IModelBase
 {
     return(ParentModel.GetParent <T>());
 }