1. Список говнокодов пользователя Katsy

    Всего: 1

  2. C# / Говнокод #5520

    +114

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    public IQueryable<Log> Select(Context context)
            {
                // Return list of entities
                return (from l in context.Logs select l);
            }
    
            /// <summary>
            /// Fetch page from Log table
            /// </summary>
            /// <param name="nStartRowIndex">Starting index of rows to fetch</param>
            /// <param name="nMaxRows">Max number of rows</param>
            /// <returns>IEnumerable of Log</returns>
            public List<Log> SelectPage(int nStartRowIndex, int nMaxRows, 
                                        string strProperty, string strKeyword,
                                        string strSort, string strSortDirection, 
                                        out int nTotalCount)
            {            
                using (Context context = new Context())
                {
                    var q = Select(context).Take (1000);
                 }
          }

    Коллега на работе наворотил...

    Katsy, 04 Февраля 2011

    Комментарии (11)