.NET Framework Bookmark and Share   
 index > Microsoft Codename 'Oslo' > How initialise record with "General" type field in "M"
 

How initialise record with "General" type field in "M"

I have this type PersonInformation with "General" Value. I add two records: one string and one date.
type PersonInformation
    {
        Value: General;
    } 

I tried this code:


PersonInformations:PersonInformation*
{
    { Value=>"Schuhmacher"},
    { Value=>2001-12-21}
}

But date was added as 'string'. Now I define one temporaty date and add it to table. It's work but I hope that exist better solution?


tmp:Date=>2001-12-21;

PersonInformations:PersonInformation*
{
    { Value=>"Schuhmacher"},
    { Value=>tmp}
}

ashalnov
I've confirmed that this behavior is a bug (when compiling to SQL) related to using Date in a General column. Unfortunately, I am not aware of any better workaround than the one you are already using.

I've filed this issue as a bug internally. My apologies for the inconvenience. I will post back here if I learn of a better workaround for you.

Thanks for the feedback and for your interest in Oslo.

David
  • Proposed As Answer bydmatsonMSFTTuesday, September 22, 2009 4:11 PM
  •  
dmatson

You can use google to search for other answers

Custom Search

More Threads

• Intellipad get ArgumentOutOfRangeException on Opening Mg Module
• DSL = Domain Modeling Toolset
• CreateRepository fails to "assign a default value to a local variable" and to "locate a scalar variable @login"
• Closed Compilation Episode - impact on Non Local Initialization
• MGrammar : Ordering of delimited tokens
• Oslo May 2009 CTP Quadrant's Response is very SLOW
• Oslo May 2009 CTP Quadrant Diagam Viewer presents Steps in Reverse Order
• New Oslo Refresh dated 3/2/2009 Does Not Install Models or Repository
• Oslo and the Relationship to EF?
• How to declare an optional, lenght constrained text type in M