TechTalks.DataAccessLayer.Dap.PostsDap.GetTop C# (CSharp) Method

GetTop() public method

public GetTop ( int count ) : List
count int
return List
        public List<Posts> GetTop(int count)
        {
            return Query<Posts>(string.Format("SELECT TOP {0} * FROM {1}", count, SqlTableName)).ToList();
        }