AutoCreateTable=true + JoinOn =>throw error

Mar 31, 2009 at 6:49 AM
Edited Mar 31, 2009 at 6:54 AM
if you set 

    <add key="Se.AutoCreateTable" value="true"/>


then

    [JoinOn(0, "SampleData.Id", "TheAge.Id", CompareOpration.Equal, JoinMode.Inner)]
     public class JoinTable2 : IDbObject
    {

you will receive an exception  :

-------------------------------

private void TryCreateTable(Type DbObjectType)
        {
            if (Driver.AutoCreateTable)
            {
                if (TableNames == null)
                {
                    InitTableNames();
                }
                ObjectInfo oi = ObjectInfo.GetInstance(DbObjectType);
                string Name = oi.From.GetMainTableName();
                Debug.Assert(TableNames != null);
                if (!TableNames.ContainsKey(Name.ToLower()))
                {/// here exception
Coordinator
Mar 31, 2009 at 9:08 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.