Files
obsidian-life/mindmaps/Книга "Библия C-шарп" 14 глава.canvas
Aleksandr Ebaklakov 011626b8b7 Initial commit
2026-04-22 16:58:43 +03:00

49 lines
6.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"nodes":[
{"id":"8b2cb2cfa316759a","type":"text","text":"Прямое соединение","x":-466,"y":-100,"width":242,"height":50,"color":"1"},
{"id":"2bdf4049001907df","type":"text","text":"Типы выполнения команд","x":-470,"y":-1,"width":250,"height":67},
{"id":"2113f098128590fe","type":"text","text":"`ExecuteScalar()` для получения одного единственного значения","x":-840,"y":138,"width":370,"height":90},
{"id":"108bbd9f02d8e401","type":"text","text":"Контейнер для SQL-запроса\n```c#\nstring sql = \"SELECT * FROM Cities\";\nSqlCommand command = new SqlCommand(sql, connection);\n```","x":-1190,"y":-174,"width":628,"height":148},
{"id":"d9735150891c4158","type":"text","text":"Объект соединения\n```c#\nusing (SqlConnection connection = new SqlConnection(connectionString))\n{\n connection.Open(); // Открываем \"дверь\" в базу данных\n // ... работа с базой\n}\n```","x":-840,"y":-500,"width":880,"height":286},
{"id":"947a21e1781317e7","type":"text","text":"`ExecuteNonQuery()` для действий, не возвращающих данные","x":-1019,"y":-1,"width":359,"height":94},
{"id":"84b94932360eda9e","type":"text","text":"`ExecuteReader()` для получения набора строк","x":-505,"y":246,"width":320,"height":95},
{"id":"27efef39b416ab4b","type":"text","text":"Работа с разными СУБД","x":-260,"y":112,"width":193,"height":88},
{"id":"3a9bbf484ebf38fb","x":194,"y":246,"width":246,"height":90,"type":"text","text":"Цикл перебора строк `Read()`"},
{"id":"ca3b8b3d970b43d5","type":"text","text":"`SqlDataReader` для чтения данных из базы «только вперед»","x":280,"y":413,"width":360,"height":94},
{"id":"9071db8f34698d9f","type":"text","text":"Чтение и обработка данных","x":440,"y":114,"width":260,"height":96,"color":"1"},
{"id":"03020e6a60bec40c","x":750,"y":-20,"width":269,"height":105,"type":"text","text":"Параметризация запросов `SqlParametr`"},
{"id":"c2167400101c4b64","x":700,"y":236,"width":340,"height":304,"type":"text","text":"Защита от SQLинъекций![[Pasted image 20260115150622.png]]"},
{"id":"130bf55675a32819","x":750,"y":-357,"width":420,"height":300,"type":"text","text":"Разделение ответственности![[Pasted image 20260115150945.png]]"},
{"id":"336331073c4d8e75","x":486,"y":-90,"width":169,"height":70,"color":"1","type":"text","text":"Архитектура"},
{"id":"093cc0ffd7cef7b2","x":486,"y":-231,"width":169,"height":57,"type":"text","text":"Интерфейсы"},
{"id":"2c984f54681597ef","type":"text","text":"Базы даных![[Pasted image 20260114112514.png]]","x":-163,"y":355,"width":396,"height":304,"color":"4"},
{"id":"ca9e6a871a4f5486","x":94,"y":-472,"width":346,"height":298,"color":"1","type":"text","text":"# Dapper![[Pasted image 20260115151207.png]]"},
{"id":"c450ef079f79ea28","type":"text","text":"# ADO.NET![[Pasted image 20260115150057.png]]","x":-20,"y":-90,"width":406,"height":259,"color":"1"},
{"id":"9a0651e81ec8b5d7","x":511,"y":-436,"width":189,"height":79,"type":"text","text":"Автоматический маппинг"},
{"id":"9ef9f1990df14ea4","x":450,"y":-560,"width":190,"height":60,"type":"text","text":"Асинхронность"},
{"id":"52afea011c59b079","x":0,"y":-590,"width":248,"height":60,"type":"text","text":"Производительность"}
],
"edges":[
{"id":"4636c242ac25691d","fromNode":"2c984f54681597ef","fromSide":"top","toNode":"c450ef079f79ea28","toSide":"bottom","color":"1"},
{"id":"5a10c8ceb58cf241","fromNode":"c450ef079f79ea28","fromSide":"left","toNode":"27efef39b416ab4b","toSide":"right"},
{"id":"cd1e239440baf8c8","fromNode":"c450ef079f79ea28","fromSide":"top","toNode":"8b2cb2cfa316759a","toSide":"right","color":"1"},
{"id":"b6d64b906602ae96","fromNode":"8b2cb2cfa316759a","fromSide":"top","toNode":"d9735150891c4158","toSide":"bottom"},
{"id":"70ad3ba26b2711d5","fromNode":"8b2cb2cfa316759a","fromSide":"left","toNode":"108bbd9f02d8e401","toSide":"right"},
{"id":"29050bd142ac927c","fromNode":"8b2cb2cfa316759a","fromSide":"bottom","toNode":"2bdf4049001907df","toSide":"top"},
{"id":"440ac0a486ad6786","fromNode":"2bdf4049001907df","fromSide":"left","toNode":"947a21e1781317e7","toSide":"right"},
{"id":"3ac689dd278d1a15","fromNode":"2bdf4049001907df","fromSide":"bottom","toNode":"2113f098128590fe","toSide":"top"},
{"id":"69bc8c9085863f53","fromNode":"2bdf4049001907df","fromSide":"bottom","toNode":"84b94932360eda9e","toSide":"top"},
{"id":"3311e2676a089cea","fromNode":"c450ef079f79ea28","fromSide":"right","toNode":"9071db8f34698d9f","toSide":"top","color":"1"},
{"id":"0d2847db21c183c8","fromNode":"9071db8f34698d9f","fromSide":"bottom","toNode":"ca3b8b3d970b43d5","toSide":"top"},
{"id":"e9492cc1d9b9e39d","fromNode":"9071db8f34698d9f","fromSide":"bottom","toNode":"3a9bbf484ebf38fb","toSide":"top"},
{"id":"5a8b40ca00db2fbd","fromNode":"9071db8f34698d9f","fromSide":"right","toNode":"03020e6a60bec40c","toSide":"left"},
{"id":"e46c0a6765421ef5","fromNode":"03020e6a60bec40c","fromSide":"bottom","toNode":"c2167400101c4b64","toSide":"top"},
{"id":"1975c31976c7c30e","fromNode":"c450ef079f79ea28","fromSide":"right","toNode":"336331073c4d8e75","toSide":"left","color":"1"},
{"id":"a59188b4ff864255","fromNode":"336331073c4d8e75","fromSide":"right","toNode":"130bf55675a32819","toSide":"left"},
{"id":"49897aaa42b015f9","fromNode":"336331073c4d8e75","fromSide":"top","toNode":"093cc0ffd7cef7b2","toSide":"bottom"},
{"id":"79d520104540d822","fromNode":"c450ef079f79ea28","fromSide":"top","toNode":"ca9e6a871a4f5486","toSide":"bottom","color":"1"},
{"id":"7b1521ae247e8d0f","fromNode":"ca9e6a871a4f5486","fromSide":"right","toNode":"9a0651e81ec8b5d7","toSide":"left"},
{"id":"bf314afc7f07626e","fromNode":"ca9e6a871a4f5486","fromSide":"top","toNode":"9ef9f1990df14ea4","toSide":"left"},
{"id":"2c999175f7b445f6","fromNode":"ca9e6a871a4f5486","fromSide":"top","toNode":"52afea011c59b079","toSide":"bottom"}
]
}