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. The Lounge
  3. Quick Poll

Quick Poll

Scheduled Pinned Locked Moved The Lounge
csharpdatabaselinqhelpquestion
35 Posts 21 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.
  • K Kevin Marois

    How many of you are still using Linq-To-SQL versus Entity Framework?

    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #4

    I use all three: Dapper Linq2SQL EF Depends on the project, but the combination is only Dapper+Linq2SQL or Dapper+EF. Much of what I do is highly abstracted, SQL generated on the fly, so Dapper is a godsend. And unless I'm doing business logic on something, mirroring the models in C# is just stupid, in my opinionated opinion. :laugh:

    Latest Articles:
    A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

    P S FreedMallocF 3 Replies Last reply
    0
    • M Marc Clifton

      I use all three: Dapper Linq2SQL EF Depends on the project, but the combination is only Dapper+Linq2SQL or Dapper+EF. Much of what I do is highly abstracted, SQL generated on the fly, so Dapper is a godsend. And unless I'm doing business logic on something, mirroring the models in C# is just stupid, in my opinionated opinion. :laugh:

      Latest Articles:
      A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #5

      Marc Clifton wrote:

      SQL generated on the fly

      I don't do that very often, but I may accept SQL from a script or the command line.

      1 Reply Last reply
      0
      • K Kevin Marois

        How many of you are still using Linq-To-SQL versus Entity Framework?

        In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

        R Offline
        R Offline
        RickZeeland
        wrote on last edited by
        #6

        Have not used this myself, but it looks interesting: Linq To DB[^] It supports popular databases like MS Access, MS SQL Server, PostgreSQL, MariaDB, SQLite, Firebird, DB2, Informix and Oracle.

        K 1 Reply Last reply
        0
        • K Kevin Marois

          How many of you are still using Linq-To-SQL versus Entity Framework?

          In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

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

          Our shop still uses it from time to time. We mostly use EF, but there are queries we will write using Linq2Sql

          1 Reply Last reply
          0
          • M Marc Clifton

            I use all three: Dapper Linq2SQL EF Depends on the project, but the combination is only Dapper+Linq2SQL or Dapper+EF. Much of what I do is highly abstracted, SQL generated on the fly, so Dapper is a godsend. And unless I'm doing business logic on something, mirroring the models in C# is just stupid, in my opinionated opinion. :laugh:

            Latest Articles:
            A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

            FreedMallocF Offline
            FreedMallocF Offline
            FreedMalloc
            wrote on last edited by
            #8

            Quote:

            ... in my opinionated opinion.

            Hey, if you're going to have an opinion, that's the only kind to have! :laugh:

            I have lived some thirty years on this planet, and I have yet to hear the first syllable of valuable or even earnest advice from my seniors. -- Henry David Thoreau Ok Boomer. -- Anonymous Millenial

            S 1 Reply Last reply
            0
            • M Marc Clifton

              I use all three: Dapper Linq2SQL EF Depends on the project, but the combination is only Dapper+Linq2SQL or Dapper+EF. Much of what I do is highly abstracted, SQL generated on the fly, so Dapper is a godsend. And unless I'm doing business logic on something, mirroring the models in C# is just stupid, in my opinionated opinion. :laugh:

              Latest Articles:
              A Lightweight Thread Safe In-Memory Keyed Generic Cache Collection Service A Dynamic Where Implementation for Entity Framework

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

              Marc Clifton wrote:

              Dapper Linq2SQL EF

              We use these 3 as well in our shop.

              1 Reply Last reply
              0
              • FreedMallocF FreedMalloc

                Quote:

                ... in my opinionated opinion.

                Hey, if you're going to have an opinion, that's the only kind to have! :laugh:

                I have lived some thirty years on this planet, and I have yet to hear the first syllable of valuable or even earnest advice from my seniors. -- Henry David Thoreau Ok Boomer. -- Anonymous Millenial

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

                How come opine is similar to a tree and opinion is similar to an onion?

                P 1 Reply Last reply
                0
                • K Kevin Marois

                  How many of you are still using Linq-To-SQL versus Entity Framework?

                  In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #11

                  I don't use either these days, but I haven't touched anything .NET related in like 7 years. Seems like forever. Nothing against them. These days I'm in the Node ecosystem.

                  Jeremy Falcon

                  1 Reply Last reply
                  0
                  • K Kevin Marois

                    How many of you are still using Linq-To-SQL versus Entity Framework?

                    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

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

                    Neither: I use SQLConnector, SQLCommand, and Reader / Adapter and DataTable as necessary.

                    "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 AntiTwitter: @DalekDave is now a follower!

                    "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

                    P 1 Reply Last reply
                    0
                    • S Slacker007

                      How come opine is similar to a tree and opinion is similar to an onion?

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #13

                      Slacker007 wrote:

                      opinion is similar to an onion

                      Or similar to just winging it.

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Neither: I use SQLConnector, SQLCommand, and Reader / Adapter and DataTable as necessary.

                        "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 AntiTwitter: @DalekDave is now a follower!

                        P Offline
                        P Offline
                        PIEBALDconsult
                        wrote on last edited by
                        #14

                        IDbConnection, IDbCommand, IDataReader, IDbDataParameter, DataTable, DataView. I can use any database system which provides an ADO.net provider/connector (and preferably SQL-92). By the same token, I can implement a class which is not a database but which provides an IDataReader. No adapters, I stopped using those years ago; too much trouble. If I recall correctly, the biggest issue I had with an adapter was that it implements concurrency protection (I may have that wrong) which can't be configured off and every once in a while an update would fail because of it -- when in fact having two updates for one record in the same batch was perfectly fine for the particular situation. So I stopped using them and never looked back.

                        1 Reply Last reply
                        0
                        • K Kevin Marois

                          How many of you are still using Linq-To-SQL versus Entity Framework?

                          In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                          M Offline
                          M Offline
                          Mike Hankey
                          wrote on last edited by
                          #15

                          I use Linq-to-SQL for SQLite in a couple of projects and EF on a couple, I guess depends on the project.

                          Give me coffee to change the things I can and wine for those I can not! PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com Latest Article: Simon Says, A Child's Game

                          1 Reply Last reply
                          0
                          • K Kevin Marois

                            How many of you are still using Linq-To-SQL versus Entity Framework?

                            In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                            Greg UtasG Offline
                            Greg UtasG Offline
                            Greg Utas
                            wrote on last edited by
                            #16

                            I don't have more than a vague idea of what you're even talking about. :laugh:

                            Robust Services Core | Software Techniques for Lemmings | Articles
                            The fox knows many things, but the hedgehog knows one big thing.

                            <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
                            <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

                            1 Reply Last reply
                            0
                            • R RickZeeland

                              Have not used this myself, but it looks interesting: Linq To DB[^] It supports popular databases like MS Access, MS SQL Server, PostgreSQL, MariaDB, SQLite, Firebird, DB2, Informix and Oracle.

                              K Offline
                              K Offline
                              Kevin Marois
                              wrote on last edited by
                              #17

                              Interesting

                              In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                              1 Reply Last reply
                              0
                              • K Kevin Marois

                                How many of you are still using Linq-To-SQL versus Entity Framework?

                                In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                                S Offline
                                S Offline
                                Stepan Hakobyan
                                wrote on last edited by
                                #18

                                Neither. Using Dapper or SQLCommand, Reader.

                                1 Reply Last reply
                                0
                                • K Kevin Marois

                                  How many of you are still using Linq-To-SQL versus Entity Framework?

                                  In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                                  Sander RosselS Offline
                                  Sander RosselS Offline
                                  Sander Rossel
                                  wrote on last edited by
                                  #19

                                  Isn't LINQ To SQL ancient history? :~ I'm using the latest versions of EF myself. Code first and migrations for automatic deployment.

                                  Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                  A 1 Reply Last reply
                                  0
                                  • P PIEBALDconsult

                                    Never neither. I just use straight ADO.net for access to whatever database system I need to connect to. If I understand correctly, those connect only to SQL Server. Using ADO.net allows an application to connect to multiple database systems, even allowing the user to specify which at run time if the application is written that way.

                                    Sander RosselS Offline
                                    Sander RosselS Offline
                                    Sander Rossel
                                    wrote on last edited by
                                    #20

                                    PIEBALDconsult wrote:

                                    If I understand correctly, those connect only to SQL Server.

                                    You understand incorrectly then. EF uses ADO.NET under the hood and also supports SQLite, MySQL, PostgreSQL, Azure Cosmos DB, Firebird, Oracle...

                                    PIEBALDconsult wrote:

                                    Using ADO.net allows an application to connect to multiple database systems, even allowing the user to specify which at run time if the application is written that way.

                                    How often is that a requirement? :~

                                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                    P 1 Reply Last reply
                                    0
                                    • K Kevin Marois

                                      How many of you are still using Linq-To-SQL versus Entity Framework?

                                      In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                                      D Offline
                                      D Offline
                                      darktrick544
                                      wrote on last edited by
                                      #21

                                      Never used either, I don't mind writing the code myself.

                                      1 Reply Last reply
                                      0
                                      • K Kevin Marois

                                        How many of you are still using Linq-To-SQL versus Entity Framework?

                                        In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                                        W Offline
                                        W Offline
                                        WPerkins
                                        wrote on last edited by
                                        #22

                                        Linq-To-SQL

                                        1 Reply Last reply
                                        0
                                        • K Kevin Marois

                                          How many of you are still using Linq-To-SQL versus Entity Framework?

                                          In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

                                          K Offline
                                          K Offline
                                          kmoorevs
                                          wrote on last edited by
                                          #23

                                          Kevin Marois wrote:

                                          Linq-To-SQL versus Entity Framework

                                          Neither. It's usually sqlclient unless I have to target non-sql server, then it's ado.net. I use datareaders or adapters to fill datasets/datatables. CRUD statements are all hand-rolled.

                                          "Go forth into the source" - Neal Morse "Hope is contagious"

                                          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