CmisSync.Lib.Database.Database.GetChecksum C# (CSharp) Метод

GetChecksum() публичный Метод

Get checksum from database. Public for debugging purposes only.
public GetChecksum ( string path ) : string
path string
Результат string
        public string GetChecksum(string path)
        {
            string localRelativePath = RemoveLocalPrefix(path);
            int length = localRelativePath.Length;

			string command = "SELECT checksum FROM files WHERE localPath=@localPath";
            Dictionary<string, object> parameters = new Dictionary<string, object>();
			parameters.Add("localPath", localRelativePath);
            string res = (string)ExecuteSQLFunction(command, parameters);
            if(string.IsNullOrEmpty(res))
            {
                Logger.Debug("GetCheckSum returns null for path=" + path + ", localRelativePath=" + localRelativePath);
            }
            return res;
        }