Deveel.Data.RequestAccess.AlterObject C# (CSharp) Method

AlterObject() public method

public AlterObject ( IObjectInfo objectInfo ) : bool
objectInfo IObjectInfo
return bool
        public override bool AlterObject(IObjectInfo objectInfo)
        {
            if (objectInfo == null)
                throw new ArgumentNullException("objectInfo");

            if (objectInfo.ObjectType == DbObjectType.Cursor ||
                objectInfo.ObjectType == DbObjectType.Variable) {
                throw new NotSupportedException();
            }

            if (objectInfo.ObjectType == DbObjectType.Table) {
                return AlterTable((TableInfo) objectInfo);
            }

            if (objectInfo.ObjectType == DbObjectType.Trigger &&
                Request.Context.TriggerExists(objectInfo.FullName.Name)) {
                // TODO:
            }

            return base.AlterObject(objectInfo);
        }