Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. linq in c#

linq in c#

Scheduled Pinned Locked Moved C#
csharpdatabasesql-serverlinqsysadmin
12 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saharmirzaei
    wrote on last edited by
    #1

    hi i have a database i created it by sql server 2012.i wanna use this in c# 2012 by LINQ but i dont know how i should use it in my application.i want all source code about LINQ for joining to that database. for example i have a store procedure in my database i wanna know how can i use from this store procedure by linq in c#.or i have views in my database how should i use from these view by linq in c# 2012.please help me.

    OriginalGriffO S R 3 Replies Last reply
    0
    • S saharmirzaei

      hi i have a database i created it by sql server 2012.i wanna use this in c# 2012 by LINQ but i dont know how i should use it in my application.i want all source code about LINQ for joining to that database. for example i have a store procedure in my database i wanna know how can i use from this store procedure by linq in c#.or i have views in my database how should i use from these view by linq in c# 2012.please help me.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      saharmirzaei wrote:

      i want all source code

      This is not a good way to start a discussion - we do expect you to do some of the work: we aren't here to be your unpaid skivvy.

      You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • S saharmirzaei

        hi i have a database i created it by sql server 2012.i wanna use this in c# 2012 by LINQ but i dont know how i should use it in my application.i want all source code about LINQ for joining to that database. for example i have a store procedure in my database i wanna know how can i use from this store procedure by linq in c#.or i have views in my database how should i use from these view by linq in c# 2012.please help me.

        S Offline
        S Offline
        Simon_Whale
        wrote on last edited by
        #3

        have a read of this 101 LINQ Samples[^] I used these when I was learning LinQ

        Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

        S 2 Replies Last reply
        0
        • S saharmirzaei

          hi i have a database i created it by sql server 2012.i wanna use this in c# 2012 by LINQ but i dont know how i should use it in my application.i want all source code about LINQ for joining to that database. for example i have a store procedure in my database i wanna know how can i use from this store procedure by linq in c#.or i have views in my database how should i use from these view by linq in c# 2012.please help me.

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          See this[^] article. /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          1 Reply Last reply
          0
          • S Simon_Whale

            have a read of this 101 LINQ Samples[^] I used these when I was learning LinQ

            Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

            S Offline
            S Offline
            saharmirzaei
            wrote on last edited by
            #5

            This code is written to the Console Application. This code is the same for both windows form application for visual studio 2012?

            1 Reply Last reply
            0
            • S Simon_Whale

              have a read of this 101 LINQ Samples[^] I used these when I was learning LinQ

              Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

              S Offline
              S Offline
              saharmirzaei
              wrote on last edited by
              #6

              This code is written to the Console Application. This code is the same for both windows form application for visual studio 2012?

              S 1 Reply Last reply
              0
              • S saharmirzaei

                This code is written to the Console Application. This code is the same for both windows form application for visual studio 2012?

                S Offline
                S Offline
                Simon_Whale
                wrote on last edited by
                #7

                yes you just need to consume the results in your windows application as you need them

                Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                S 2 Replies Last reply
                0
                • S Simon_Whale

                  yes you just need to consume the results in your windows application as you need them

                  Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                  S Offline
                  S Offline
                  saharmirzaei
                  wrote on last edited by
                  #8

                  but in these code i can't find code about store procedure and view couse i am a beginner programmer.could you help me?

                  1 Reply Last reply
                  0
                  • S Simon_Whale

                    yes you just need to consume the results in your windows application as you need them

                    Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                    S Offline
                    S Offline
                    saharmirzaei
                    wrote on last edited by
                    #9

                    but i can't find codes about store procedure and view. couse i am beginner programmer could you help me?

                    S 1 Reply Last reply
                    0
                    • S saharmirzaei

                      but i can't find codes about store procedure and view. couse i am beginner programmer could you help me?

                      S Offline
                      S Offline
                      Simon_Whale
                      wrote on last edited by
                      #10

                      Are you using something like Entity Framework to connect to your database or Linq2SQL?

                      Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                      S 1 Reply Last reply
                      0
                      • S Simon_Whale

                        Are you using something like Entity Framework to connect to your database or Linq2SQL?

                        Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                        S Offline
                        S Offline
                        saharmirzaei
                        wrote on last edited by
                        #11

                        yes

                        J 1 Reply Last reply
                        0
                        • S saharmirzaei

                          yes

                          J Offline
                          J Offline
                          Jameel VM
                          wrote on last edited by
                          #12

                          try this link http://www.entityframeworktutorial.net/[^]. one of the best site give all about Entityframework.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups