Visual Studio 2010 after installation

Well I got Visual Studio 2010 installed and the first thing I tried out was the entity framework designer. I really enjoy the pin and remove feature of the start page. I'm always building ConsoleApplication24 so i can test an idea. Now I can finally get rid of them without having to delete or move them. It appears to handle more complicated associations and inheritance better but still seems a little shy of prime time. It handled the following class hierarchy:

The above hierarchy was built all from one table. With a condition on the child classes specifying an expected value for a TransactionTypeId column. This compiled with only one error. Something about the TransactionTypeId requiring a default value. I opened up the edmx file and added, to my suprise, a DefaultValue attribute with the assistance of intellisense. After that it compiled fine.

My new tables do not have primary keys on all of them yet. The designer tried to infer the keys for each entity from something, but it did not get them correct. I had to go and remove extra columns from the entity keys.

Hopefully I will have more information in the future. I'll post again on VS 2010 when I find or use something interesting again. Until then, happy coding.

No comments:

Post a Comment

Get widget