locked
How do I get the model update to copy the table & column descriptions in the DB to the POCOs? RRS feed

Answers

  • I think that you should be able to make those objects using the 4.x version and copy the objects into a 5.x project. Basically POCO are just objects representing a database table structure, and they have getters and setters. They are no more than DTO(s).  I create DTO(s) in VS2010 using 4.x and copy the objects over to VS2012 and use them. So I don't see why you can't do the same thing. However, I don't use POCO(s), and you are going to have to try it and see what happens.  
    • Marked as answer by Fred Bao Friday, October 4, 2013 9:26 AM
    Thursday, October 3, 2013 12:47 AM

All replies

  • Most likely you may have to use the tool.

    http://visualstudiogallery.msdn.microsoft.com/23df0450-5677-4926-96cc-173d02752313

    Or do it manually :)

    I use DTO(s) myself. But it only works for C# and not VB, which may be the same thing for the above tool and is not right that it only works with C# projects. It's kind of ridiculous that VB is not getting the same attention. 

    http://entitiestodtos.codeplex.com/

    • Proposed as answer by Fred Bao Monday, September 30, 2013 4:34 AM
    • Unproposed as answer by DavidThielen Monday, September 30, 2013 3:26 PM
    Sunday, September 29, 2013 5:42 PM
  • I have version 5.0 of the tool installed (the link is to version 4.0). Do I need something else?

    thanks - dave


    Who will win The Windward International Collegiate Programming Championships?

    Monday, September 30, 2013 3:26 PM
  • Why not? It's just an object generator no more or no less. You can right it yourself, a little program,  if you are using an EDMX and generate the objects.
    Tuesday, October 1, 2013 12:17 AM
  • Sorry, I don't understand what you're saying.

    Who will win The Windward International Collegiate Programming Championships?

    Tuesday, October 1, 2013 1:12 PM
  • I think that you should be able to make those objects using the 4.x version and copy the objects into a 5.x project. Basically POCO are just objects representing a database table structure, and they have getters and setters. They are no more than DTO(s).  I create DTO(s) in VS2010 using 4.x and copy the objects over to VS2012 and use them. So I don't see why you can't do the same thing. However, I don't use POCO(s), and you are going to have to try it and see what happens.  
    • Marked as answer by Fred Bao Friday, October 4, 2013 9:26 AM
    Thursday, October 3, 2013 12:47 AM