public void Compile() { KeyType = Types.Type.Compile(Space, Key); if (false == KeyType.IsKeyable) { throw new Exception("table.key need a isKeyable type: " + Space.Path(".", Name)); } if (this.IsAutoKey && !(KeyType is Types.TypeLong)) { throw new Exception("autokey only support key type of long"); } ValueType = Types.Type.Compile(Space, Value); if (!ValueType.IsNormalBean) // is normal bean, exclude beankey { throw new Exception("table.value need a normal bean : " + Space.Path(".", Name)); } }
public virtual void Compile() { ArgumentType = Argument.Length > 0 ? Types.Type.Compile(Space, Argument) : null; }
public override void Compile() { base.Compile(); ResultType = Result.Length > 0 ? Types.Type.Compile(Space, Result) : null; }