示例#1
0
        //public int _countVisit()
        //{
        //    return 0;
        //}



        public VisitFreezing GetIdVisitCount(string name, DateTime date)
        {
            VisitFreezing visitFreezing = (VisitFreezing)_myEntities.Where(w =>
                                                                           w.Name.Names == name && w.Date == date)
                                          .Select(w => w.VisitFreezing)
                                          .SingleOrDefault();

            return(visitFreezing);
        }
示例#2
0
        public static string TestHelper5(this HtmlHelper htmlHelper, VisitFreezing visitFreezing)
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (visitFreezing != 0)
            {
                stringBuilder.Append("(");
                stringBuilder.Append(visitFreezing.ToString());
                stringBuilder.Append(")");
            }



            return(stringBuilder.ToString());
        }