public static int InsertLocalShaMapping(LocalShaMapping entity) { var sql = "INSERT INTO LocalShaMapping (FilePath, Sha1, FileFolder, UpdateTime, FileSize) VALUES (@FilePath, @Sha1, @FileFolder, GETDATE(), @FileSize)"; return(Execute(ConnectionStrings.Scan, sql, entity)); }