Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend TableAndViewAttribute to support procs #350

Closed
Grauenwolf opened this issue Feb 4, 2020 · 2 comments
Closed

Extend TableAndViewAttribute to support procs #350

Grauenwolf opened this issue Feb 4, 2020 · 2 comments

Comments

@Grauenwolf
Copy link
Collaborator

  1. If you call .Insert, .Update, or .Delete and there is an override in place, then an InvalidOperationException will be thrown.
  2. The InvalidOperationException will indicate which operation (Procedure, TableFunction, or ScalarFunction) that you should have used instead.
  3. New methods:
  • Procedure<TObject>(TObject value, OperationType operation)
  • TableFunction<TObject>(TObject value, OperationType operation)
  • ScalarFunction<TObject>(TObject value, OperationType operation)
  1. The object name comes from GetDatabaseObjectFromClass<TObject>

See also #348

@Grauenwolf
Copy link
Collaborator Author

This will also require a change to Anchor.

@Grauenwolf
Copy link
Collaborator Author

There isn't a clean way to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant