in

The ORM Foundation

Get the facts!

Support for Visual Studio 2010

Last post Wed, Jun 8 2011 10:06 by Ken Evans. 38 replies.
Page 3 of 3 (39 items) < Previous 1 2 3
Sort Posts: Previous Next
  • Sun, Dec 12 2010 10:20 In reply to

    Re: Support for Visual Studio 2010

    Matt,

    Thanks for the update. I'm really looking forward to the VS2010 version.

    We're having to shift between VS2008 and VS2010 only because of NORMA. I'm modeling the new carbon sequestration for Class VI wells permit database to support our recently finalized rule on that subject (http://water.epa.gov/type/groundwater/uic/wells_sequestration.cfm) with ORM in VS2008 but the rest of the team is in VS2010, tied together with TFS and Project Server 2010. Moving the model to VS2010 will reduce the versioning complexity...;-)

    Richard

    US Environmental Protection Agency
    Office of Water | Immediate Office | Project Management Office
    1200 Pennsylvania Ave NW
    Washington, DC 20460
    Voice: (202) 564-4876

  • Sun, Dec 12 2010 19:23 In reply to

    Re: Support for Visual Studio 2010

    JParrish:
    L2S does a good job of generating a series of classes from the database, but the object model that you get is a one to one rendition of the physical model.

    The problem here is that L2S doesn't really support anything other than a one-to-one mapping. That is, it has nothing like the Entity Framework's ComplexType. ComplexType would have been useful for modeling absorbed entity types. While it's possible to fake-up complex types using custom property types (see http://dotnetslackers.com/articles/csharp/Complex-Types-in-LINQ-to-SQL-Reloaded.aspx, you lose automatic change tracking. I think this problem can possibly be addressed, by changing the custom property object constructor so it has a reference to the object into which it's absorbed (and so can report changes), but I haven't tried that. It depends on whether you can get sufficient control of the object instantiation layer which calls the constructor.

    You also don't get an identity map for the complex types, so if a query for Customers yields two records that absorb the same Address, you get two Address objects, not one. That's because L2S only uses a primary key identifier field to address its identity map, not (as in the case of an absorbed Address) all fields.

    Another way to handle it would be to handle the absorbed entity as a C# struct, and I think it would be possible to get proper change tracking that way, though you still wouldn't have an identity map for the entity.

    JParrish:
    Are there any extensions to NORMA that generate C# object models

    ActiveFacts generates an object model from either CQL or NORMA. Currently, there is no L2S (or other C#) generator. I've just been looking at what it would take to build one however. How much do you want one? :)

  • Sun, Jan 2 2011 1:52 In reply to

    Re: Support for Visual Studio 2010

    Hi All,

    I've posted the new version with support for VS2010. There are some minor items still to fix (listed in the readme), but I don't anticipate these causing any major problems.

    I appreciate everyone's patience while I've added 2010 support. I've been using the tool steadily for several weeks now and have worked through a number of issues with the new platform. The final file change count was 407 for the core NORMA sources, 12 for PLiX, and 166 in other private extensions, so just managing the checkin process took me more than a day of work.

    VS2010 is definitely a new platform and has some odd issues I haven't seen on the other versions. Hopefully Microsoft will release an SP1 that tightens things up and increases some of the performance slowdowns.

    Please let me know of any problems you have with the tool. Both the VS2010 bits and the cross-model drag components are significant changes.

    -Matt

  • Wed, Jan 5 2011 3:54 In reply to

    • dettner
    • Top 150 Contributor
    • Joined on Sun, Dec 7 2008
    • Posts 3

    Re: Support for Visual Studio 2010

    Exiting news!

    Thank you, Matthew!!! I will check this out at once.

    Regards/Fredrik

  • Sun, May 29 2011 12:50 In reply to

    • halcwb
    • Top 75 Contributor
    • Joined on Fri, May 8 2009
    • Posts 7

    Re: Support for Visual Studio 2010

    I have ported my ORM files from VS2008 to VS2010, and everything seems to work well, thought I did not do much with the ORM project yet. Only, I can not find the normal NORMA navigation tree at the right side of my screen? Is this a bug?
    Filed under:
  • Sun, May 29 2011 13:34 In reply to

    • Ken Evans
    • Top 10 Contributor
      Male
    • Joined on Sun, Nov 18 2007
    • Stickford, UK
    • Posts 805

    Re: Support for Visual Studio 2010

    halcwb:
    I can not find the normal NORMA navigation tree at the right side of my screen?
     

    Please would you clarify what you mean by "normal NORMA navigation tree".

    Do you mean the toolbox, the ORM Tool window menu or something else?

    Thanks

    Ken 

  • Sun, May 29 2011 15:07 In reply to

    • halcwb
    • Top 75 Contributor
    • Joined on Fri, May 8 2009
    • Posts 7

    Re: Support for Visual Studio 2010

    Ken Evans:

    halcwb:
    I can not find the normal NORMA navigation tree at the right side of my screen?
     

    Please would you clarify what you mean by "normal NORMA navigation tree".

    Do you mean the toolbox, the ORM Tool window menu or something else?

    Thanks

    Ken 

    Oops, sorry, my mistake, I already found it. I ment the ORM Modelbrowser. In my VS2008 installation it was already showing when opening an ORM file. But by right clicking in an ORM file I found it. Thank you for the quick reply. An unrelated question is whether support for the TimeStamp data type will be included in the NORMA tool? That would be great. Thanks -- Casper
  • Wed, Jun 8 2011 8:48 In reply to

    Re: Support for Visual Studio 2010

     Where do you get the VS 2010 version.  I have tried source forge, but the installers always error and say I need VS 2008 or
    VS 2005.  I am on windows 7 and only have VS 2010.  Thanks.

  • Wed, Jun 8 2011 10:06 In reply to

    • Ken Evans
    • Top 10 Contributor
      Male
    • Joined on Sun, Nov 18 2007
    • Stickford, UK
    • Posts 805

    Re: Support for Visual Studio 2010

    Hi Chris,

    You can download the VS2010 version from the Library: 

    http://www.ormfoundation.org/files/folders/norma_the_software/entry2427.aspx

    Ken

Page 3 of 3 (39 items) < Previous 1 2 3
© 2008-2024 ------- Terms of Service