src/NSWallet/NSWallet.Shared/DataAccess/DataAccessLayer.cs
File DataAccessLayer.cs
has 514 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
Class DataAccessLayer
has 35 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public partial class DataAccessLayer
{
// Static members, everything needed for singleton initialization
static string DBFile;
static DataAccessLayer DAL;
Method ChangePassword
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public bool ChangePassword(string newPassword)
{
try
{
nswdb.BeginTransaction();
Method CreateLabel
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public bool CreateLabel(string fieldType, string name, string icon, string valueType, bool system)
Method ResetMemoryData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public void ResetMemoryData(bool resetItems, bool resetFields, bool resetLabel, bool resetIcons = false, bool resetGroups = false)
Method UpdateIcon
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public bool UpdateIcon(string iconID, string name, byte[] blob = null, int groupID = -1, int isCircle = -1)
Method CreateItem
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public void CreateItem(string itemID, string parentID, string name, string icon, bool folder)