Can I change the method parameter type in Sql Builder to object?
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 18.4k
- Forks
- 3.7k
- Avg merge
- 5h 8m
- Merged PRs (30d)
- 1
Description
I see the error message in sharepoint project.
Dynamic operations can only be performed in homogenous AppDomain.
look into about this. it seems that causes by dynamic type.
So Can I change the method parameter (dynamic parameters) type in Sql Builder to object?
SqlBuilder AddParameters(dynamic parameters);
SqlBuilder Select(string sql, dynamic parameters = null);
SqlBuilder Where(string sql, dynamic parameters = null);
SqlBuilder OrWhere(string sql, dynamic parameters = null);
SqlBuilder OrderBy(string sql, dynamic parameters = null);
SqlBuilder GroupBy(string sql, dynamic parameters = null);
SqlBuilder Having(string sql, dynamic parameters = null);
SqlBuilder Set(string sql, dynamic parameters = null);
SqlBuilder Join(string sql, dynamic parameters = null);
SqlBuilder InnerJoin(string sql, dynamic parameters = null);
SqlBuilder LeftJoin(string sql, dynamic parameters = null);
SqlBuilder RightJoin(string sql, dynamic parameters = null);
SqlBuilder Intersect(string sql, dynamic parameters = null);
TO
SqlBuilder AddParameters(object? parameters);
SqlBuilder Select(string sql, object? parameters = null);
SqlBuilder Where(string sql, object? parameters = null);
SqlBuilder OrWhere(string sql, object? parameters = null);
SqlBuilder OrderBy(string sql, object? parameters = null);
SqlBuilder GroupBy(string sql, object? parameters = null);
SqlBuilder Having(string sql, object? parameters = null);
SqlBuilder Set(string sql, object? parameters = null);
SqlBuilder Join(string sql, object? parameters = null);
SqlBuilder InnerJoin(string sql, object? parameters = null);
SqlBuilder LeftJoin(string sql, object? parameters = null);
SqlBuilder RightJoin(string sql, object? parameters = null);
SqlBuilder Intersect(string sql, object? parameters = null);
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the SqlBuilder entry points for the listed methods and compare their current dynamic parameter signatures with the proposed object? signatures. Reproduce or inspect the reported SharePoint AppDomain error, then verify that parameter handling still works and that the reported error is addressed without changing the builder's existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100