{"id":2300074,"date":"2024-12-04T14:45:24","date_gmt":"2024-12-04T14:45:24","guid":{"rendered":"https:\/\/www.wacoca.com\/news\/2300074\/"},"modified":"2024-12-04T14:45:24","modified_gmt":"2024-12-04T14:45:24","slug":"asp-net-core-odata-9%e3%81%af%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b9%e3%82%92%e6%94%b9%e5%96%84%e3%81%97%e3%80%81-net-framework%e3%81%ae%e3%82%b5%e3%83%9d%e3%83%bc%e3%83%88","status":"publish","type":"post","link":"https:\/\/www.wacoca.com\/news\/2300074\/","title":{"rendered":"ASP.NET Core OData 9\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3057\u3001.NET Framework\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u5ec3\u6b62"},"content":{"rendered":"<p>\u539f\u6587\u30ea\u30f3\u30af(2024-10-08)<\/p>\n<p>\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306f\u30012024\u5e748\u670830\u65e5\u306bASP.NET Core OData 9\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u63d0\u4f9b\u3092\u958b\u59cb\u3059\u308b\u3068\u767a\u8868\u3057\u305f\u3002\u3053\u306e\u65b0\u3057\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001ASP.NET Core\u3092.NET 8\u306eOData\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u4e00\u81f4\u3055\u305b\u3001\u30c7\u30fc\u30bf\u304cOData\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u308b\u65b9\u6cd5\u306e\u5185\u90e8\u8a73\u7d30\u3092\u5909\u66f4\u3059\u308b\u3002\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306b\u3088\u308b\u3068\u3001\u3053\u308c\u306b\u3088\u308aOData\u4ed5\u69d8\u306b\u6cbf\u3063\u305f\u3082\u306e\u306b\u306a\u308b\u3068\u3044\u3046\u3002<\/p>\n<p>2024\u5e748\u6708\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306fOData .NET\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30d0\u30fc\u30b8\u30e7\u30f38.0.0\u306b\u66f4\u65b0\u3057\u305f\u3002\u305d\u306e\u4e2d\u3067\u3082\u3063\u3068\u3082\u91cd\u8981\u306a\u5909\u66f4\u306f\u3001\u30ec\u30ac\u30b7\u30fc\u306a.NET Framework\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u3084\u3081\u305f\u3053\u3068\u3060\u3002\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u3089\u306f\u3001.NET 8\u4ee5\u964d\u306e\u307f\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3002\u30ec\u30ac\u30b7\u30fc.NET Framework\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u958b\u767a\u8005\u306f\u3001OData\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f37.x\u3092\u4f7f\u7528\u3067\u304d\u308b\u30022025\u5e743\u6708\u306b\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30fb\u30e2\u30fc\u30c9\u306b\u79fb\u884c\u3059\u308b\u307e\u3067\u3001\u7a4d\u6975\u7684\u306b\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u308b\u3002<\/p>\n<p>OData 8 \u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u65b0\u3057\u3044JSON\u30e9\u30a4\u30bf\u30fcSystem.Text.Utf8JsonWriter\u3092\u4f7f\u7528\u3057\u3066\u3001JSON\u30da\u30a4\u30ed\u30fc\u30c9\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3068\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3092\u884c\u3046\u3002\u3053\u306e\u65b0\u3057\u3044\u30e9\u30a4\u30bf\u30fc\u306f\u3001Microsoft.OData.Json.DefaultJsonWriterFactory\u306b\u3088\u3063\u3066\u4f5c\u6210\u3055\u308c\u308b\u53e4\u3044\u30e9\u30a4\u30bf\u30fc\u3067\u3042\u308bJsonWriter\u3088\u308a\u3082\u3001TextWriter\u30d9\u30fc\u30b9\u3067\u306f\u306a\u304fStream\u30d9\u30fc\u30b9\u3067\u3042\u308b\u305f\u3081\u3001\u5927\u5e45\u306b\u9ad8\u901f\u3067\u3001\u3088\u308a\u5c11\u306a\u3044\u30e1\u30e2\u30ea\u3057\u304b\u5fc5\u8981\u3068\u3057\u306a\u3044\u3002\u65b0\u3057\u3044\u30e9\u30a4\u30bf\u30fc\u306fOData\u30d0\u30fc\u30b8\u30e7\u30f37.12.2\u304b\u3089\u5229\u7528\u53ef\u80fd\u3067\u3042\u3063\u305f\u304c\u3001\u73fe\u5728\u3067\u306fOData 8\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5b9f\u88c5\u3068\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u958b\u767a\u8005\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u30d3\u30eb\u30c0\u30fc\u3067AddOData\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3001ODataJsonWriterFactory\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u53e4\u3044\u30e9\u30a4\u30bf\u30fc\u3092\u4f7f\u7528\u3067\u304d\u308b\u3002<\/p>\n<p>    builder.Services.AddControllers().AddOData(options =&gt; options.EnableQueryFeatures().AddRouteComponents(routePrefix: string.Empty, model: modelBuilder.GetEdmModel(), configureServices: (services) =&gt;{    services.AddScoped  (sp =&gt; new Microsoft.OData.Json.ODataJsonWriterFactory());}));    <\/p>\n<p>\u65b0\u3057\u3044\u30e9\u30a4\u30bf\u30fc\u306f\u3001\u53e4\u3044\u30e9\u30a4\u30bf\u30fc\u3068\u540c\u3058\u65b9\u6cd5\u3067\u306fJSON\u3092\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3057\u306a\u3044\u3002\u53e4\u3044\u30e9\u30a4\u30bf\u30fc\u304c\u305d\u3046\u3067\u3042\u3063\u305f\u3088\u3046\u306b\u3001\u3059\u3079\u3066\u306e\u4e0a\u4f4dASCII Unicode\u6587\u5b57\u3092\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u306a\u3044\u3002\u4f8b\u3048\u3070\u3001\u30ae\u30ea\u30b7\u30e3\u6587\u5b57\u306e\u3088\u3046\u306a\u975e\u30e9\u30c6\u30f3\u8a18\u53f7\u3092Unicode\u306e\u6570\u5217\u3068\u3057\u3066\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u306a\u3044\u3002\u305d\u306e\u4ee3\u308f\u308a\u3001Unicode\u6587\u5b57\u305d\u306e\u3082\u306e\u3092\u51fa\u529b\u3059\u308b\u3002\u53e4\u3044\u30e9\u30a4\u30bf\u30fc\u306f\u3001\u4e8b\u5b9f\u4e0a\u3059\u3079\u3066\u306e\u975eASCII\u6587\u5b57\u3092\u6570\u5b57\u3068\u3057\u3066\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u30da\u30a4\u30ed\u30fc\u30c9\u306e\u30b5\u30a4\u30ba\u3092\u5927\u304d\u304f\u3057\u3001\u30a8\u30f3\u30b3\u30fc\u30c9\u51e6\u7406\u3092\u9045\u304f\u3057\u3066\u3044\u305f\u3002\u65b0\u3057\u3044JSON\u30e9\u30a4\u30bf\u30fc\u306f\u3001\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u305f\u5c0f\u6587\u5b57\u306e\u4ee3\u308f\u308a\u306b\u3001\u5927\u6587\u5b57\u306eUnicode\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u3002<\/p>\n<p>ASP.NET Core OData 9\u306e\u3082\u30461\u3064\u306e\u5927\u304d\u306a\u5909\u66f4\u70b9\u306f\u3001\u4f9d\u5b58\u6027\u6ce8\u5165\u306e\u4ed5\u7d44\u307f\u3060\u3002\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eOData\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001OData\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u6210\u3059\u308b\u305f\u3081\u306b\u975e\u6a19\u6e96\u306eIContainerBuilder\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u304c\u3001\u66f4\u65b0\u3055\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001.NET\u3068\u540c\u3058\u62bd\u8c61\u5316\u3001\u3059\u306a\u308f\u3061IServiceProvider\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>    builder.Services.AddControllers().AddOData(options =&gt; options.EnableQueryFeatures().AddRouteComponents(routePrefix: string.Empty, model: modelBuilder.GetEdmModel(), configureServices: (services) =&gt;{    services.AddDefaultODataServices(odataVersion\uff1aMicrosoft.OData.ODataVersion.V4, configureReaderAction: (messageReaderSettings) =&gt;    {        \/\/ Relevant changes to the ODataMessageReaderSettings instance here    }, configureWriterAction: (messageWriterSettings) =&gt;    {        \/\/ Relevant changes to the ODataMessageWriterSettings instance here    }, configureUriParserAction: (uriParserSettings) =&gt;    {        \/\/ \/\/ Relevant changes to the ODataUriParserSettings instance here    });}));    <\/p>\n<p>\u65b0\u3057\u3044OData\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u3001\u30ec\u30ac\u30b7\u30fc\u306a\u5b9f\u88c5\u3084JSONP\u5f62\u5f0f\u306a\u3069\u306e\u53e4\u3044\u6a19\u6e96\u306e\u524a\u9664\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30de\u30a4\u30ca\u30fc\u306a\u5909\u66f4\u304c\u3042\u308b\u3002\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u306b\u3064\u3044\u3066\u306f\u3001\u958b\u767a\u8005\u306fOData 8 .NET\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p>\u65b0\u3057\u3044ASP.NET Core OData 9\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001NuGet\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u306e\u65b0\u3057\u3044\u30ea\u30ea\u30fc\u30b9\u306f\u3001\u904e\u53bb6\u9031\u9593\u3067150,000\u56de\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3002ASP.NET Core OData\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fGitHub\u3067\u516c\u958b\u3055\u308c\u3066\u304a\u308a\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u73fe\u5728458\u306e\u672a\u89e3\u6c7a\u306e\u554f\u984c\u304c\u3042\u308b\u3002<\/p>\n<p>        \u4f5c\u8005\u306b\u3064\u3044\u3066 <\/p>\n<p>                    Edin Kapi\u0107<\/p>\n<p>                            \u3082\u3063\u3068\u898b\u308b\u3088\u308a\u5c11\u306a\u304f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u30ea\u30f3\u30af(2024-10-08) \u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u306f\u30012024\u5e748\u670830\u65e5\u306bASP.NET Core OData 9\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u63d0\u4f9b\u3092\u958b\u59cb\u3059\u308b\u3068\u767a\u8868\u3057\u305f\u3002\u3053\u306e\u65b0\u3057\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001ASP.NET Core\u3092.NET 8\u306eO<\/p>\n","protected":false},"author":2,"featured_media":2300075,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[762827],"tags":[153594,768000,768001,768002,1739,81678,762834,762833,521918,162246,2662,762832],"class_list":{"0":"post-2300074","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-science-technology","8":"tag-153594","9":"tag-aspnet-core-odata-9","10":"tag-json","11":"tag-markup-languages","12":"tag-microsoft","13":"tag-net","14":"tag-science-technology","15":"tag-science-news","16":"tag-technology-news","17":"tag-162246","18":"tag-2662","19":"tag-762832"},"share_on_mastodon":{"url":"https:\/\/wakoka.com\/@news\/113595097167166693","error":""},"_links":{"self":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/posts\/2300074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/comments?post=2300074"}],"version-history":[{"count":0,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/posts\/2300074\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/media\/2300075"}],"wp:attachment":[{"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/media?parent=2300074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/categories?post=2300074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wacoca.com\/news\/wp-json\/wp\/v2\/tags?post=2300074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}