Skip to content

dynamic 底层实现变更, 从 ExpandoObject 改为 SugarRow #1314

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

John0King
Copy link

本次目标

  • SugarRow 实现
  • Db.Ado.SqlQuery/SqlQuerySingle/SqlQuery...
  • 兼容ExpandoObject

其他目标

  • Db.Query

@DotNetNext
Copy link
Owner

这个pull无法合并
状态好像 不对

@John0King
Copy link
Author

这个pull无法合并 状态好像 不对

现在是草稿状态,最近没时间搞;方便的话给指导一下改哪个地方实现

@John0King
Copy link
Author

@DotNetNext 现在我试了下, 无法完美的无损兼容 ExpandoObject, var eo = row as ExpandoObject 这种 as 转换无法兼容
其他的都可以

SugarRow row = new SugarRow();
dynamic dyrow= row;

ExpandoObject eo = row; // ok
ExpandoObject eo = dyrow; // ok
ExpandoObject eo = (ExpandoObject)row; //ok
ExpandoObject eo = (ExpandoObject)dyrow; //ok

ExpandoObject eo = row as ExpandoObject;// not ok  :  CS0039 无法编译
ExpandoObject eo = dyrow as ExpandoObject //  not ok :  null

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

Successfully merging this pull request may close these issues.

2 participants