---
title: "Discussion on \"Calling Model methods using Linq\" | Hashnode"
description: "Discussion on \"Calling Model methods using Linq\". Here is a trick I learned today on how to call methods defined on a model.\nBasically query the database for the fields in it and convert it to an Enumerable. You can then call the model methods\nExample: \nvar allCoupons = responderCtx.Coupons\n    .Whe..."
url: "https://hashnode.com/posts/calling-model-methods-using-linq/60354a90bc9bf67747fdca12"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Calling Model methods using Linq](https://cwizsoftware.com/calling-model-methods-using-linq?utm_source=hashnode&utm_medium=feed)

Here is a trick I learned today on how to call methods defined on a model. Basically query the database for the fields in it and convert it to an Enumerable. You can then call the model methods Example: var allCoupons = responderCtx.Coupons .Whe...

Jul 31, 2015 · 1 min read · cwizsoftware.com  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Xavier](https://hashnode.com/@xavier2021)

@xavier2021

  
[View profile](https://hashnode.com/@xavier2021)

C#

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
