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. Code First

Code First

Scheduled Pinned Locked Moved The Lounge
databasecomdesignbusinesscollaboration
44 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.
  • M Marc Clifton

    R1911 wrote:

    Article!

    Some day. Want to help me write it?

    Latest Article - A Concise Overview of Threads Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

    R Offline
    R Offline
    R1911
    wrote on last edited by
    #41

    Sure definitely. Please let me know , how do we start & proceed. :-O Thank you!

    1 Reply Last reply
    0
    • R realJSOP

      Just say no to Entity Framework.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      U Offline
      U Offline
      User 11230442
      wrote on last edited by
      #42

      well said

      1 Reply Last reply
      0
      • H HobbyProggy

        I guess you should mix it, as already commented, to push out prototypes and quick showcases it's fine to go code-first. For most other stuff i'd suggest DB first. I for my self went up with all basic data i need for the application, built up the database and stuff and then coded. But for new small things that just need a new table or field i mostly design it in code first, show it, get the changes fixed and then put it in the DB before i code the final implementation.

        Rules for the FOSW ![^]

        if(!string.IsNullOrWhiteSpace(_signature))
        {
        MessageBox.Show("This is my signature: " + Environment.NewLine + _signature);
        }
        else
        {
        MessageBox.Show("404-Signature not found");
        }

        U Offline
        U Offline
        User 11230442
        wrote on last edited by
        #43

        I usually work with dbs. So The db is already included in the virgin app/server code as a basic entity. I also use the db for logging. so its just natural. It is just a part of the system. As per the remote hardware etc.

        1 Reply Last reply
        0
        • R raddevus

          F-ES Sitecore wrote:

          Nowhere in the agile manifesto does it dictate what technology you can use,

          I agree. I was trying to say that this is Microsoft's attempt to create a technology to help lead devs into this by providing a "design on the fly" type of thing. Design on the fly isn't quite right either and is a variable depending upon the team. Also thinking more about Agile Scrum here. The point is, create one domain model into class model and Code-First it and you are on the steps toward iterative design.

          F-ES Sitecore wrote:

          There is no reason that code first is better for agile than database first

          Also agree. However, as I mentioned Code-First is a dev-first type of view - a technology that is an attempt to make it easier for devs to quickly design using Models and having them serialized to the database. If the dev were to create the DB table first it could be seen as the model and design coming from that too. But devs are more code-centric and it is more common that when someone designs a database they do more than one table at a time -- just a convention.

          F-ES Sitecore wrote:

          and if your project management is driving your technology then your project management is bad.

          I think that this code-first idea has little to do with project management because it is coming from the devs viewpoint. This is probably used more in cases where there is no project management. Which goes back to my original post that I am saying that this whole Code-First thing was a way to lure devs into at least creating models first (very minimal design) and allow them to design one model at a time (iteratively) and is generally so loose that it would be mostly for prototyping or first run design. Also throughout all this I'm not saying that the Agile Principles mean that there is no design. I really like the original Agile Principles[^]. I'm saying that they do say, "Working software is the primary measure of progress." so code-first is an attempt (however good or terrible it may be) to help devs design iteratively to get to running code (serialized to db) as quickly as possible. Also, of course, I am saying that all design is not done up front as another principle states, "Deliver w

          U Offline
          U Offline
          User 11230442
          wrote on last edited by
          #44

          Sometimes, designing on the fly is the only option. I design the hardware, firmware and software. For systems. A lot of these are multilevel in HW & FW. It is called research and development. Therefore I always include a DB in the design. If not used take it out. Which is easier to do than put it in latter as per encryption. Put encryption as standard. If not required, it does not matter. putting it in later may be annoying. Anyway.

          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