The forum will be down for maintenance over the weekend of August 18-20, 2017. The forum will be shut down on the evening (EDT) of Friday, August 18. Downtime is unknown but may be up to two days. The forum will be restarted as soon as maintenance is complete.

I'm using

iAnywhere.Data.SQLAnywhere.v4.5, runtime version: v4.0.30319, Version VisualStudio 2012

When adding a column via Entity Framework:

AddColumn("TableName", "ColumnName", c => c.Boolean(nullable:true));


AddColumn("TableName", "ColumnName", c => c.Boolean());

This has a result that a column is created with Type of BIT in the remote client, BUT Unfortunately, the column is not nullable.

This approach DOES work for other types like integer.

Workaround 1. perform following query:


This only works when the table has no data. if it already has data => exception => "Table must be empty"

Workaround 2.

use regular sql instead of EF commands:

alter table TableName add ColumnName bit NULL;

Where do I report this? Anyone seen anything like this before?

asked 18 Jun '15, 02:08

vdcey's gravatar image

accept rate: 33%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 18 Jun '15, 02:08

question was seen: 1,437 times

last updated: 18 Jun '15, 02:08