- 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."
推薦閱讀
- Learning NServiceBus(Second Edition)
- Visual Studio 2012 Cookbook
- Java EE 6 企業(yè)級應(yīng)用開發(fā)教程
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- Mastering OpenCV 4
- YARN Essentials
- Python數(shù)據(jù)分析從0到1
- WebRTC技術(shù)詳解:從0到1構(gòu)建多人視頻會議系統(tǒng)
- Swift細致入門與最佳實踐
- Solr Cookbook(Third Edition)
- C++反匯編與逆向分析技術(shù)揭秘(第2版)
- Extending Unity with Editor Scripting
- Kotlin進階實戰(zhàn)
- Learning Image Processing with OpenCV
- ROS機器人編程實戰(zhàn)