Support of TEXT column type in NEO

Code generation

1. Add TEXT type into

Neo.MetaModel.Reader.NorqueReader GetDotNetType method

private Type GetDotNetType(string norqueType)
{
  
   new string[]

Unknown macro: { "System.String",        "CHAR", "VARCHAR", "LONGVARCHAR", "TEXT" }

}
rebuild Tools solution and use new Neo.exe for code generation.

2. Add definition into norque.dtd

<!ATTLIST column

...

  | BLOB | CLOB    | REF         | BOOLEANINT | BOOLEANCHAR
        | DOUBLE | TEXT

Template change 

3. Add this into NeoSupport.vtl template

#if($attributes.AllowsNull)
        c.AllowDBNull = true;
#end
#if($attributes.ColumnType == "TEXT")
                c.ExtendedProperties["LockStrategy"] = "NONE";
#end
#if($attributes.DefaultValue)
        c.DefaultValue = Convert.ChangeType("$attributes.DefaultValue",typeof($attributes.DotNetType));
#end

That's it. You may use TEXT as a column type:

<column name="steps" required="true" type="TEXT" /> 

Labels

 
(None)