mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #88] Chinese sentences in error info / ORM library #1990
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#1990
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @majkinetor on GitHub (Feb 20, 2021).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/88
Originally assigned to: @VShawn on GitHub.
English should be the only allowed language in entire project.
Mentioned on #85, this is due to FreeSql ORM
github.com/dotnetcore/FreeSql@c12c552352/Providers/FreeSql.Provider.Sqlite/SqliteAdo/SqliteConnectionPool.cs (L193)@majkinetor commented on GitHub (Feb 20, 2021):
Daper is minimal ORM: https://stackexchange.github.io/Dapper/
We tested it extensively and it works great with only around 20% slowdown compared to direct access. There are few limitations but nothing serious and it obviously is recommended by MS.
@VShawn commented on GitHub (Feb 27, 2021):
question, can Daper auto update table structure when I add new properties to the model?
freesql can auto sync structure when the model change.
github.com/VShawn/PRemoteM@a64edac606/PRM.Core/DB/freesql/FreeSqlDb.cs (L75-L80)@majkinetor commented on GitHub (Feb 27, 2021):
As far as I know, no.
In my projects we use entity framework only for that (just DDL, not even seeding data, Powershell does that) and dapper for everything else, and also do it externally. Entity can autodoit via the code similar to what you show. We have a db model project that the main project depends on for models and create and apply db migrations within it with one command. Making this work OTB is like ... 10 minutes work ? We also use it to reset migrations later. Devs can then use it fom VS itself or via CLI. Here is entire CLI code for that for example (code first approach)
Like I said, dapper is minimal ORM with performance in mind and doesn't have all bells and whistles. This is not database heavy project, quite contrary. I don't think that is a deal breaker and you can go with proposed alternative that will not bloat main project if you want to go that route.
@majkinetor commented on GitHub (Mar 17, 2021):
Nice, I see u are using dapper now :)
This is nice info :)