<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGrowthPath.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGrowthPath" %> <%= new MyGrowthPathNavTopInstance(this) { Local= MyGrowthPathNavTopItem.比一比 }.ToHtml()%>
<% var listVideo = CreateInstance.VideoDao.Where(l => l.ParentUser == this.User && l.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.审核通过 && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.有效 && l.TeacherRatio > 0 && l.StudentRatio > 0) .Take(100) .OrderByDescending(l => l.CreateTime) .ToList(); //var crit = CreateInstance.VideoDao.NHibernateSession.CreateCriteria("_Alias"); //crit.Add(NHibernate.Criterion.Expression.Eq("Examine", (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.审核通过)); //crit.Add(NHibernate.Criterion.Expression.Eq("Status", (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.有效)); //crit.CreateAlias("ParentUser", "_User"); //crit.Add(NHibernate.Criterion.Expression.Eq("_User.Guid", this.User.Guid)); //crit.AddOrder(NHibernate.Criterion.Order.Desc("CreateTime")); %>