[castle][JIRA] Created: (CONTRIB-77) Adding table with composite key fails with error

0 views
Skip to first unread message

David Gardiner (JIRA)

unread,
Oct 25, 2007, 2:41:45 AM10/25/07
to castle-pro...@googlegroups.com
Adding table with composite key fails with error
------------------------------------------------

Key: CONTRIB-77
URL: http://support.castleproject.org//browse/CONTRIB-77
Project: Contrib
Issue Type: Bug
Components: ActiveWriter
Reporter: David Gardiner
Assigned To: Gokhan Altinoren


Adding the following table

CREATE TABLE [dbo].[COMPOSITE_KEY_SAMPLE_TABLE](
[CT_ONE] [varchar](10) NOT NULL,
[CT_TWO] [int] NOT NULL,
[CT_DATA] [nvarchar](50) NOT NULL,
CONSTRAINT [PK_COMPOSITE_KEY_SAMPLE_TABLE] PRIMARY KEY CLUSTERED
(
[CT_ONE] ASC,
[CT_TWO] ASC
)

to the model fails with the following errors (these are from calling the compiler)

ActiveWriter: Operator '=' is not defined for types 'Object' and 'CompositeKeySampleTableCompositeKey'.
ActiveWriter: Option Strict On disallows operands of type Object for operator '='. Use the 'Is' operator to test for object identity.
ActiveWriter: Option Strict On disallows operands of type Object for operator '='. Use the 'Is' operator to test for object identity.
ActiveWriter: Operator '<>' is not defined for types 'System.Type' and 'System.Type'.
ActiveWriter: 'Is' requires operands that have reference types, but this operand has the value type 'Integer'.

This is a VB project, and the model is set to NHibernate mode.

-dave

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://support.castleproject.org//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply all
Reply to author
Forward
0 new messages