Deveel.Data.RequestAccess.AlterObject C# (CSharp) Méthode

AlterObject() public méthode

public AlterObject ( IObjectInfo objectInfo ) : bool
objectInfo IObjectInfo
Résultat 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);
        }