score:0
In order to use an extension method, you must have a using
directive for the namespace of the class in which you defined the extension method.
So try putting your class in a namespace, and add using
for it.
Also, be sure that this class is defined as public static.
Source: stackoverflow.com
Related Articles
- Code equivalent to the 'let' keyword in chained LINQ extension method calls
- Linq to entities extension method inner query (EF6)
- String extension method in Linq query
- encapsulating logic in a linq to sql query via extension method
- Difference between extension method and direct query
- Using an extension method on a base class in a LINQ query
- Convert linq query expression with multiple froms into extension method syntax
- Use C# extension method as predicate in linq query
- Linq Query to IEnumerable<T> Extension Method
- Moving a LINQ sub query to an extension method fails at runtime
- Nested Groups Linq query vs Groupby extension method
- How-to use predicates for customer where LINQ query in Entity Framework, Extension Method "Search by Words"
- Is there any way to encapsulate a simple LINQ query in an extension method that can be used with LINQ to Entities query?
- Why the extension method of where for LINQ in this code would print out a single number while it shouldn't print anything at all?
- Linq extension method equivalent for that code in VB.NET
- Effect of Parentheses in a LINQ Extension Method Query
- Write LINQ query without select or group clause using extension method syntax
- How to code an Or extension method
- LINQ extension method to create Where query
- How can I use this extension method in a linq to entities query using query syntax?
- EF query using extension method inside extension method
- Linq extension method to query a table
- Translate LINQ Inline query to extension method
- Would using an extension method to query an IEnumerable be equivalent to using IQueryable?
- How do I correlate a Linq query extension method to its signature in the documentation?
- Query that uses the Aggregate extension method against DbContext
- Linq query as extension method
- Filter Query with extension method in group by context
- Query vs Extension Method - Using GroupBy
- What is the use of Enumerable.Zip extension method in Linq?
- Recommendations for a One to Many (EF Core)
- Condensing linq expressions into one expression for a simple blog system
- How to return null if using SingleOrDefault() and searching a list of numbers for a number not in list?
- C# Linq Query to avoid reversed entries
- Is there a way to search a List<T> using a partially populated object?
- Usage OrderBy in LINQ firstly the Cyrillic words then the Latin words
- IEnumerable Items Disappear - Exist in DAL but not Caller
- Display One record at a time in MVC through List
- Storing tsv data in a list and looping through it
- SELECT on column using LINQ with an aggregate function
- Select Top n from XML File
- how to remove a character at the end of a string in linq c#
- Executing list of IEnumerable queries
- Calculate a percentage column in controller for use in view
- Reuse Linq to SQL code with entityframework
- LINQ doing individual queries when it should have the data
- Edit: Merge list into another list that is null, it is possible?
- If I have a collection of classes how can I return a collection of a single attribute of all the classes?
- Linq extended set operations
- Sorting Issue with User defined datatypes (Custom Properties) in C#