⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠
IQueryable customers = db.GetTable();
IQueryable custNameQuery = from cust in customers where cust.City == “London” select cust.Name;
foreach (string str in custNameQuery) { Console.WriteLine(str); }
1
2
3
%%
{ "type": "excalidraw", "version": 2, "source": "https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/2.0.3", "elements": [ { "type": "rectangle", "version": 432, "versionNonce": 649156194, "isDeleted": false, "id": "Yzmh7Jog7Q4Vy_bxpgyOl", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -476.81840727383315, "y": 0.6346773831315886, "strokeColor": "transparent", "backgroundColor": "#ffd43b", "width": 60.76953125000001, "height": 23.57421874999999, "seed": 1051812383, "groupIds": [], "frameId": null, "roundness": { "type": 3 }, "boundElements": [ { "id": "076IYjKTXn7OktlrCem6m", "type": "arrow" } ], "updated": 1700685265647, "link": null, "locked": false }, { "type": "rectangle", "version": 553, "versionNonce": 1196449954, "isDeleted": false, "id": "hZNkcvFRa3XTRPbevd66t", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -456.98275789808804, "y": -142.84980365212198, "strokeColor": "transparent", "backgroundColor": "#ffd43b", "width": 66.32812500000001, "height": 19.925781249999986, "seed": 1561007921, "groupIds": [], "frameId": null, "roundness": { "type": 3 }, "boundElements": [ { "id": "rAK88CeLixRa3W3oIlsAe", "type": "arrow" }, { "id": "076IYjKTXn7OktlrCem6m", "type": "arrow" } ], "updated": 1700685228530, "link": null, "locked": false }, { "type": "rectangle", "version": 551, "versionNonce": 442784354, "isDeleted": false, "id": "4RECjLuZ8q13L33MALpC2", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -131.30463094693488, "y": -87.42062780374818, "strokeColor": "transparent", "backgroundColor": "#ffd43b", "width": 100.78224746604877, "height": 14.890461437189614, "seed": 1073938015, "groupIds": [], "frameId": null, "roundness": { "type": 3 }, "boundElements": [ { "id": "rAK88CeLixRa3W3oIlsAe", "type": "arrow" } ], "updated": 1700685222520, "link": null, "locked": false }, { "type": "rectangle", "version": 507, "versionNonce": 1413127166, "isDeleted": false, "id": "Kdpvc7R7ISt4DB_hZULvq", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -147.50730133484475, "y": -141.2560543833781, "strokeColor": "transparent", "backgroundColor": "#ffd43b", "width": 49.38856206107265, "height": 16.96845529443896, "seed": 1389898335, "groupIds": [], "frameId": null, "roundness": { "type": 3 }, "boundElements": [ { "id": "SCaWxD7FfKTImp_5fo51v", "type": "arrow" } ], "updated": 1700685250304, "link": null, "locked": false }, { "type": "rectangle", "version": 456, "versionNonce": 481349886, "isDeleted": false, "id": "JEisNGPZ6J3wsclSWBuoE", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -451.8400135869565, "y": -259.8079144021739, "strokeColor": "transparent", "backgroundColor": "#ffd43b", "width": 85.85529891304348, "height": 16.56742527173911, "seed": 1082818801, "groupIds": [], "frameId": null, "roundness": { "type": 3 }, "boundElements": [ { "id": "vr3qnIA7HrVgsYV-2rXqI", "type": "arrow" }, { "id": "SCaWxD7FfKTImp_5fo51v", "type": "arrow" } ], "updated": 1700685171114, "link": null, "locked": false }, { "type": "text", "version": 336, "versionNonce": 732776894, "isDeleted": false, "id": "OOD4P9iH", "fillStyle": "hachure", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -569.4337635869565, "y": -262.66508152173907, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "width": 413.3797607421875, "height": 50, "seed": 321612209, "groupIds": [], "frameId": null, "roundness": null, "boundElements": [], "updated": 1700685171115, "link": null, "locked": false, "fontSize": 20, "fontFamily": 1, "text": "IQueryable<Customer> customers =\n db.GetTable<Customers>();", "rawText": "IQueryable<Customer> customers =\n db.GetTable<Customers>();", "textAlign": "left", "verticalAlign": "top", "containerId": null, "originalText": "IQueryable<Customer> customers =\n db.GetTable<Customers>();", "lineHeight": 1.25, "baseline": 43 }, { "type": "text", "version": 515, "versionNonce": 897228514, "isDeleted": false, "id": "yyjpOuVq", "fillStyle": "hachure", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -569.5323481377234, "y": -145.3893586686935, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "width": 641.519775390625, "height": 75, "seed": 1047855615, "groupIds": [], "frameId": null, "roundness": null, "boundElements": [ { "id": "SCaWxD7FfKTImp_5fo51v", "type": "arrow" }, { "id": "vr3qnIA7HrVgsYV-2rXqI", "type": "arrow" }, { "id": "rAK88CeLixRa3W3oIlsAe", "type": "arrow" } ], "updated": 1700685253434, "link": null, "locked": false, "fontSize": 20, "fontFamily": 1, "text": "IQueryable<string> custNameQuery = from cust in customers\n where cust.City == \"London\"\n select cust.Name;", "rawText": "IQueryable<string> custNameQuery = from cust in customers\n where cust.City == \"London\"\n select cust.Name;", "textAlign": "left", "verticalAlign": "top", "containerId": null, "originalText": "IQueryable<string> custNameQuery = from cust in customers\n where cust.City == \"London\"\n select cust.Name;", "lineHeight": 1.25, "baseline": 68 }, { "type": "text", "version": 162, "versionNonce": 388602274, "isDeleted": false, "id": "4AWahUxc", "fillStyle": "hachure", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -565.6699697738331, "y": -1.8282132418684114, "strokeColor": "#1e1e1e", "backgroundColor": "transparent", "width": 375.399658203125, "height": 100, "seed": 166413745, "groupIds": [], "frameId": null, "roundness": null, "boundElements": [ { "id": "076IYjKTXn7OktlrCem6m", "type": "arrow" } ], "updated": 1700685265647, "link": null, "locked": false, "fontSize": 20, "fontFamily": 1, "text": "foreach (string str in custNameQuery)\n{\n Console.WriteLine(str);\n}", "rawText": "foreach (string str in custNameQuery)\n{\n Console.WriteLine(str);\n}", "textAlign": "left", "verticalAlign": "top", "containerId": null, "originalText": "foreach (string str in custNameQuery)\n{\n Console.WriteLine(str);\n}", "lineHeight": 1.25, "baseline": 93 }, { "type": "arrow", "version": 652, "versionNonce": 894873698, "isDeleted": false, "id": "vr3qnIA7HrVgsYV-2rXqI", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -437.10880968627754, "y": -236.63502038043475, "strokeColor": "transparent", "backgroundColor": "#ffd43b", "width": 57.89271804301387, "height": 73.24385204000521, "seed": 556051455, "groupIds": [], "frameId": null, "roundness": { "type": 2 }, "boundElements": [], "updated": 1700685211257, "link": null, "locked": false, "startBinding": { "elementId": "JEisNGPZ6J3wsclSWBuoE", "gap": 6.60546875, "focus": 0.8075302472879475 }, "endBinding": { "elementId": "yyjpOuVq", "focus": -0.24707289144902528, "gap": 18.001809671736055 }, "lastCommittedPoint": null, "startArrowhead": null, "endArrowhead": "arrow", "points": [ [ 0, 0 ], [ 57.89271804301387, 73.24385204000521 ] ] }, { "type": "arrow", "version": 1369, "versionNonce": 168992738, "isDeleted": false, "id": "SCaWxD7FfKTImp_5fo51v", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -451.15185139080717, "y": -235.59595788043478, "strokeColor": "#1e1e1e", "backgroundColor": "#ffd43b", "width": 343.9424407433803, "height": 93.21145368728733, "seed": 2125270225, "groupIds": [], "frameId": null, "roundness": { "type": 2 }, "boundElements": [ { "type": "text", "id": "fXcKaAgb" } ], "updated": 1700685253334, "link": null, "locked": false, "startBinding": { "elementId": "JEisNGPZ6J3wsclSWBuoE", "focus": 0.7920485533848097, "gap": 7.644531249999972 }, "endBinding": { "elementId": "Kdpvc7R7ISt4DB_hZULvq", "focus": 0.24952316249154025, "gap": 1.1284498097693358 }, "lastCommittedPoint": null, "startArrowhead": null, "endArrowhead": "arrow", "points": [ [ 0, 0 ], [ -17.484867359192833, 47.72877038043478 ], [ 284.14688551797855, 53.780307529392104 ], [ 326.45757338418747, 93.21145368728733 ] ] }, { "type": "text", "version": 4, "versionNonce": 1043407103, "isDeleted": false, "id": "fXcKaAgb", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -331.7345838423186, "y": -196.5644395190257, "strokeColor": "#1e1e1e", "backgroundColor": "#ffd43b", "width": 5.4199981689453125, "height": 25, "seed": 1531051281, "groupIds": [], "frameId": null, "roundness": null, "boundElements": [], "updated": 1700684858672, "link": null, "locked": false, "fontSize": 20, "fontFamily": 1, "text": "1", "rawText": "1", "textAlign": "center", "verticalAlign": "middle", "containerId": "SCaWxD7FfKTImp_5fo51v", "originalText": "1", "lineHeight": 1.25, "baseline": 18 }, { "type": "arrow", "version": 887, "versionNonce": 1605989090, "isDeleted": false, "id": "rAK88CeLixRa3W3oIlsAe", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -80.89211810728466, "y": -70.05856035544878, "strokeColor": "#1e1e1e", "backgroundColor": "#ffd43b", "width": 349.2370878777242, "height": 77.49269476408881, "seed": 263073087, "groupIds": [], "frameId": null, "roundness": { "type": 2 }, "boundElements": [ { "type": "text", "id": "mubl9yq7" } ], "updated": 1700685258842, "link": null, "locked": false, "startBinding": { "elementId": "yyjpOuVq", "focus": -0.5867253078855338, "gap": 1 }, "endBinding": { "elementId": "hZNkcvFRa3XTRPbevd66t", "focus": 0.34185525940382333, "gap": 4.0223872611097775 }, "lastCommittedPoint": null, "startArrowhead": null, "endArrowhead": "arrow", "points": [ [ 0, 0 ], [ -36.77467303819833, 28.64961997852538 ], [ -314.36317513595003, 24.552638211705812 ], [ -349.2370878777242, -48.84307478556343 ] ] }, { "type": "text", "version": 4, "versionNonce": 99970975, "isDeleted": false, "id": "mubl9yq7", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -283.76421010740046, "y": -26.943656177904003, "strokeColor": "#1e1e1e", "backgroundColor": "#ffd43b", "width": 14.239990234375, "height": 25, "seed": 523764849, "groupIds": [], "frameId": null, "roundness": null, "boundElements": [], "updated": 1700684890741, "link": null, "locked": false, "fontSize": 20, "fontFamily": 1, "text": "2", "rawText": "2", "textAlign": "center", "verticalAlign": "middle", "containerId": "rAK88CeLixRa3W3oIlsAe", "originalText": "2", "lineHeight": 1.25, "baseline": 18 }, { "type": "arrow", "version": 601, "versionNonce": 523544034, "isDeleted": false, "id": "076IYjKTXn7OktlrCem6m", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -447.9362040182283, "y": -114.25019427712198, "strokeColor": "#1e1e1e", "backgroundColor": "#ffd43b", "width": 4.43946932442816, "height": 113.54482790547434, "seed": 375870431, "groupIds": [], "frameId": null, "roundness": { "type": 2 }, "boundElements": [ { "type": "text", "id": "YgIzzhMY" } ], "updated": 1700685265647, "link": null, "locked": false, "startBinding": { "elementId": "hZNkcvFRa3XTRPbevd66t", "focus": 0.6984426583335606, "gap": 8.673828125000007 }, "endBinding": { "elementId": "Yzmh7Jog7Q4Vy_bxpgyOl", "focus": -0.20927724362741806, "gap": 1.3400437547792308 }, "lastCommittedPoint": null, "startArrowhead": null, "endArrowhead": "arrow", "points": [ [ 0, 0 ], [ -4.43946932442816, 113.54482790547434 ] ] }, { "type": "text", "version": 2, "versionNonce": 1955244543, "isDeleted": false, "id": "YgIzzhMY", "fillStyle": "solid", "strokeWidth": 1, "strokeStyle": "solid", "roughness": 1, "opacity": 100, "angle": 0, "x": -444.02288818359375, "y": -43.869140625, "strokeColor": "#1e1e1e", "backgroundColor": "#ffd43b", "width": 13.6199951171875, "height": 25, "seed": 1340265425, "groupIds": [], "frameId": null, "roundness": null, "boundElements": [], "updated": 1700684900661, "link": null, "locked": false, "fontSize": 20, "fontFamily": 1, "text": "3", "rawText": "3", "textAlign": "center", "verticalAlign": "middle", "containerId": "076IYjKTXn7OktlrCem6m", "originalText": "3", "lineHeight": 1.25, "baseline": 18 } ], "appState": { "theme": "light", "viewBackgroundColor": "#ffffff", "currentItemStrokeColor": "#1e1e1e", "currentItemBackgroundColor": "#ffd43b", "currentItemFillStyle": "solid", "currentItemStrokeWidth": 1, "currentItemStrokeStyle": "solid", "currentItemRoughness": 1, "currentItemOpacity": 100, "currentItemFontFamily": 1, "currentItemFontSize": 20, "currentItemTextAlign": "left", "currentItemStartArrowhead": null, "currentItemEndArrowhead": "arrow", "scrollX": 621.6680670256516, "scrollY": 649.3009430656432, "zoom": { "value": 1.0393021596463883 }, "currentItemRoundness": "round", "gridSize": null, "gridColor": { "Bold": "#C9C9C9FF", "Regular": "#EDEDEDFF" }, "currentStrokeOptions": null, "previousGridSize": null, "frameRendering": { "enabled": true, "clip": true, "name": true, "outline": true } }, "files": {}}