- OData Programming Cookbook for .NET Developers
- Steven Cheng
- 212字
- 2021-08-13 18:19:28
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "Finally, it comes to the FileEntity
class."
A block of code is set as follows:
public partial class InitSession : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session.Count == 0) { Session.Add("string item", "some text"); Session.Add("int item", 120); Session.Add("boolean item", true); Session.Add("date item", DateTime.Now); Session.Add("array item", new int[]{1,2,3}); } } }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
namespace ODataEFService
{
public class NWDataService : DataService< ODataEFService.NorthwindEntities >
{
public static void InitializeService(DataServiceConfiguration config)
{
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
config.SetEntitySetAccessRule ("*", EntitySetRights.All);
}
}
}
Any command-line input or output is written as follows:
DataSvcUtil.exe /in:Northwind.edmx /out:NWDataServiceProxy.cs
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Specify the necessary publish options in the Publish Web dialog."
推薦閱讀
- 微服務(wù)設(shè)計(jì)(第2版)
- Java程序設(shè)計(jì)(慕課版)
- Java EE 6 企業(yè)級(jí)應(yīng)用開(kāi)發(fā)教程
- JavaScript 網(wǎng)頁(yè)編程從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開(kāi)發(fā)視頻大講堂)
- Vue.js 3.0源碼解析(微課視頻版)
- 區(qū)塊鏈:以太坊DApp開(kāi)發(fā)實(shí)戰(zhàn)
- Learning Neo4j 3.x(Second Edition)
- Mastering Apache Maven 3
- Building Android UIs with Custom Views
- HTML 5與CSS 3權(quán)威指南(第3版·上冊(cè))
- ASP.NET程序開(kāi)發(fā)范例寶典
- Beginning C++ Game Programming
- RESTful Web Clients:基于超媒體的可復(fù)用客戶端
- 深度實(shí)踐KVM:核心技術(shù)、管理運(yùn)維、性能優(yōu)化與項(xiàng)目實(shí)施
- React and React Native