Skip to content

Commit

Permalink
Improve clean database function
Browse files Browse the repository at this point in the history
  • Loading branch information
lzcapp committed Sep 10, 2024
1 parent c7faf88 commit d472b26
Show file tree
Hide file tree
Showing 13 changed files with 719 additions and 586 deletions.
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tab_width = 2
csharp_indent_braces = false
csharp_new_line_before_catch = false
csharp_new_line_before_else = false
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = none
csharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion
csharp_style_namespace_declarations = block_scoped:suggestion
Expand Down Expand Up @@ -50,10 +51,11 @@ resharper_instance_members_qualify_declared_in =
resharper_keep_existing_initializer_arrangement = false
resharper_keep_existing_linebreaks = false
resharper_place_expr_accessor_on_single_line = true
resharper_place_simple_initializer_on_single_line = false
resharper_place_simple_initializer_on_single_line = true
resharper_vb_keep_user_linebreaks = false
resharper_vb_stick_comment = false
resharper_vb_wrap_lines = false
resharper_wrap_object_and_collection_initializer_style = chop_always

# ReSharper inspection severities
resharper_arrange_namespace_body_highlighting = hint
Expand Down
55 changes: 55 additions & 0 deletions KindleMate2/Entities/Clippling.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System.Diagnostics.CodeAnalysis;

namespace KindleMate2.Entities {
[SuppressMessage("ReSharper", "InconsistentNaming")]
public class Clipping {
public string key { get; set; }
public string content { get; set; }
public string bookname { get; set; }
public string authorname { get; set; }
public int briefType { get; set; }
public string clippingtypelocation { get; set; }
public string clippingdate { get; set; }
public int read { get; set; }
public string clipping_importdate { get; set; }
public string tag { get; set; }
public int sync { get; set; }
public string newbookname { get; set; }
public int colorRGB { get; set; }
public int pagenumber { get; set; }

public Clipping(string key, string content, string bookName, string authorName, int briefType, string clippingTypeLocation, string clippingDate, int read, string clippingImportDate, string tag, int sync, string newBookName, int colorRGB, int pageNumber) {
this.key = key;
this.content = content;
bookname = bookName;
authorname = authorName;
this.briefType = briefType;
clippingtypelocation = clippingTypeLocation;
clippingdate = clippingDate;
this.read = read;
clipping_importdate = clippingImportDate;
this.tag = tag;
this.sync = sync;
newbookname = newBookName;
this.colorRGB = colorRGB;
pagenumber = pageNumber;
}

public Clipping() {
key = string.Empty;
content = string.Empty;
bookname = string.Empty;
authorname = string.Empty;
briefType = 0;
clippingtypelocation = string.Empty;
clippingdate = string.Empty;
read = 0;
clipping_importdate = string.Empty;
tag = string.Empty;
sync = 0;
newbookname = string.Empty;
colorRGB = -1;
pagenumber = 0;
}
}
}
58 changes: 29 additions & 29 deletions KindleMate2/FrmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d472b26

Please sign in to comment.