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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. The Lounge
  3. Moving from Ruby on Rails to Visual Studio .Net

Moving from Ruby on Rails to Visual Studio .Net

Scheduled Pinned Locked Moved The Lounge
rubydatabasecsharpasp-netvisual-studio
6 Posts 3 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.
  • G Offline
    G Offline
    GarethHowell
    wrote on last edited by
    #1

    Hi all Whilst I have done quite a bit of ASP.Net programming in the past, most of my recent development work has been with Ruby on Rails. I'm now starting up a new project that requires ASP.Net and I'm trying to see how to do a couple of the really great features in RoR. The main one is database migrations. In RoR, you have a logical schema for the database tables stored as a series of migrations: each of which contains the changes to up or down the rev level of the database tables. As you develop the models, you add migrations. This makes rapid development involving databases really easy. Does anything similar exists for VS and ASP.Net? I've been through much of the ASP.Net MVC pages but all the othe references I've seen are too micky mouse to see anything useful (i.e. they all deal with local MDF databases rather than a remote SQL Server database). Regards Gareth

    === GarethHowell http://www.elastictime.com

    D 1 Reply Last reply
    0
    • G GarethHowell

      Hi all Whilst I have done quite a bit of ASP.Net programming in the past, most of my recent development work has been with Ruby on Rails. I'm now starting up a new project that requires ASP.Net and I'm trying to see how to do a couple of the really great features in RoR. The main one is database migrations. In RoR, you have a logical schema for the database tables stored as a series of migrations: each of which contains the changes to up or down the rev level of the database tables. As you develop the models, you add migrations. This makes rapid development involving databases really easy. Does anything similar exists for VS and ASP.Net? I've been through much of the ASP.Net MVC pages but all the othe references I've seen are too micky mouse to see anything useful (i.e. they all deal with local MDF databases rather than a remote SQL Server database). Regards Gareth

      === GarethHowell http://www.elastictime.com

      D Offline
      D Offline
      Dario Solera
      wrote on last edited by
      #2

      You'd better ask in another forum, at any rate migrations have nothing to do with ASP.NET but they are related to your data access layer. Coming from RoR, you'll find ASP.NET MVC much more familiar than WebForms, but it's just a web framework built on top of .NET. It does not include anything specific for database management, but you can rely on any existing .NET solution. You have several choices: - Entity Framework - Linq2SQL - NHibernate - SubSonic - ect. I have no idea about the first tow, but I think that NHibernate supports migrations. SubSonic supports migrations only when using the SimpleRepository model (basically, no FKs).

      If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3

      G B 2 Replies Last reply
      0
      • D Dario Solera

        You'd better ask in another forum, at any rate migrations have nothing to do with ASP.NET but they are related to your data access layer. Coming from RoR, you'll find ASP.NET MVC much more familiar than WebForms, but it's just a web framework built on top of .NET. It does not include anything specific for database management, but you can rely on any existing .NET solution. You have several choices: - Entity Framework - Linq2SQL - NHibernate - SubSonic - ect. I have no idea about the first tow, but I think that NHibernate supports migrations. SubSonic supports migrations only when using the SimpleRepository model (basically, no FKs).

        If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3

        G Offline
        G Offline
        GarethHowell
        wrote on last edited by
        #3

        Thanks mate, I'll repost elsewhere, but thanks anyway for the clarification and pointers. Gareth

        === GarethHowell http://www.elastictime.com

        1 Reply Last reply
        0
        • D Dario Solera

          You'd better ask in another forum, at any rate migrations have nothing to do with ASP.NET but they are related to your data access layer. Coming from RoR, you'll find ASP.NET MVC much more familiar than WebForms, but it's just a web framework built on top of .NET. It does not include anything specific for database management, but you can rely on any existing .NET solution. You have several choices: - Entity Framework - Linq2SQL - NHibernate - SubSonic - ect. I have no idea about the first tow, but I think that NHibernate supports migrations. SubSonic supports migrations only when using the SimpleRepository model (basically, no FKs).

          If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3

          B Offline
          B Offline
          Brady Kelly
          wrote on last edited by
          #4

          Dario Solera wrote:

          SimpleRepository model (basically, no FKs).

          What is such a simple repo that it doesn't support FK's? A flat file? :laugh:

          D 1 Reply Last reply
          0
          • B Brady Kelly

            Dario Solera wrote:

            SimpleRepository model (basically, no FKs).

            What is such a simple repo that it doesn't support FK's? A flat file? :laugh:

            D Offline
            D Offline
            Dario Solera
            wrote on last edited by
            #5

            Nope, it's just a way to use SQL Server/MySQL. The most important consideration in this case is that FKs are a problem for scalability. Basically, it's a storage pattern that is based on a DBMS because it's convenient, robust and transactions are ACID, but your schema is highly denormalized so that it scales well.

            If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3

            B 1 Reply Last reply
            0
            • D Dario Solera

              Nope, it's just a way to use SQL Server/MySQL. The most important consideration in this case is that FKs are a problem for scalability. Basically, it's a storage pattern that is based on a DBMS because it's convenient, robust and transactions are ACID, but your schema is highly denormalized so that it scales well.

              If you truly believe you need to pick a mobile phone that "says something" about your personality, don't bother. You don't have a personality. A mental illness, maybe - but not a personality. - Charlie Brooker My Photos/CP Flickr Group - ScrewTurn Wiki v3

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #6

              Oh, sweet. I've actually created a DB like that. A real one, not my own play ones.

              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