The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

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,272 times

last updated: 18 Jun '15, 02:08