Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Multicolumn Associations That Use Enum Class Cast Required #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Entity with multi-column association where one or more of those are 
generated enum types.

2. Code like this will generate:

_roleTypeId = value.RoleTypeId;

3. But requires something like this:

_roleTypeId = (int)value.RoleTypeId;

What version of the product are you using?
Using the 2.1.655 build.

Please provide any additional information below.

Contact me directly if I can be of any assistance.

Original issue reported on code.google.com by tyler.je...@gmail.com on 11 Apr 2009 at 9:39

GoogleCodeExporter commented 9 years ago
Can you attach a sample schema that demonstrates the issue?

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:43

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:51

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:57

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:57

GoogleCodeExporter commented 9 years ago
Refers to support ticket: 107356

Original comment by bniemyjski on 21 Apr 2009 at 4:22

GoogleCodeExporter commented 9 years ago
Do you still need the script? Or were you able to pull it from the support 
ticket?

Original comment by tyler.je...@gmail.com on 21 Apr 2009 at 6:01

GoogleCodeExporter commented 9 years ago
I don't see this scenario in the script that we have in support.  Do you have a 
small
sample that repro's the issue? Which table is used as an enum?

Original comment by paul.wel...@gmail.com on 21 Apr 2009 at 9:23

GoogleCodeExporter commented 9 years ago
I am having the same issue. I dnt have a small sample code, but this is wat I 
have done:

Two Tables in SQL:
MediaTypes:
  mediaTypeID
  mediaTypeName

Tags:
  tagID
  mediaTypeID
  tagName

foreign key is linking the 2 tables

I opened the dbml file and changed the type of the mediaTypeID in the Tags 
table to
Enums.MediaType which I created with the same values of the database.

What am I doing wrong?

Thanks for any help

Original comment by vincent....@gmail.com on 10 Jun 2009 at 10:11

GoogleCodeExporter commented 9 years ago
Please try the latest build of PLINQO from the nightly builds section at 
http://plinqo.com/download.ashx

Original comment by shannon....@gmail.com on 26 Oct 2009 at 5:51

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 6:03