- 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."
推薦閱讀
- JavaScript:Functional Programming for JavaScript Developers
- Learning C++ Functional Programming
- 零基礎學Java(第4版)
- HTML5+CSS3+JavaScript Web開發案例教程(在線實訓版)
- Keras深度學習實戰
- C# and .NET Core Test Driven Development
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Application Development with Parse using iOS SDK
- Python網絡爬蟲實例教程(視頻講解版)
- Professional JavaScript
- Elasticsearch搜索引擎構建入門與實戰
- Tkinter GUI Programming by Example
- VC++ 2008專題應用程序開發實例精講
- Python深度學習入門:從零構建CNN和RNN