未加星标

Introducing Couchbase .NET SDK Core 2.4.0 DP1!

字体大小 | |
[数据库(综合) 所属分类 数据库(综合) | 发布者 店小二05 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

The new "hotness" in the Microsoft .NET world is .NET Core: an open source, cross platform (OSX, linux, and windows) implementation of the .NET framework. In an effort to provide the very best developer environment, today Couchbase is releasing a .NET Core compatible SDK! This initial version is a developer preview, and actually supports .NET Framework 4.5 and .NET Core 1.0. More on that later.

What's in this package?

If your following the Couchbase .NET SDK, you'll notice that we bumped the minor version from 2.3.X to 2.4.X in this release. The reason is that final GA version of 2.4.0 will contain several new features which broaden this public facing API of the SDK:

Cluster Level Authentication Data structures API Cluster level query Generic "find"

These features are either in development or about to begin development and will make there way into subsequent DP's - this release, DP1, only includes .NET Core compatibility .

Importantly note that this package includes both .NET Framework 4.5 (our base .NET version that the SDK supports) and .NET Core 1.0 (via NetStandard1.5). Your target project type will determine which version of the SDK is used. It also means that the NuGet package will be backwards compatible with your existing code as long as you do not convert your projects to .NET Core projects .

Additionally, there is a high probability that the SDK will not support synchronous methods for the final .NET Core version; this is because Microsoft has been moving away from the older synchronous API's to async everything.You'll still be able to call the async methods synchronously via Task.Result, we just won't offer a pure synchronous version.

Getting Started on Linux

In the following section I will show how to use the Couchbase .NET Core 2.4.0-dp1 in an simple console application running on Ubuntu 14.0.4. I am assuming that you have already installed .NET Core 1.0.1 on the machine, if you haven't please follow these directions . It also assumes you have installed Couchbase Server 4.5. If you haven't please download and install it .

First open, a terminal and make a directory called cb-core-example and then change to that directory and run dotnet new:


Introducing Couchbase .NET SDK Core 2.4.0 DP1!

Using VIM or your favorite editor, open up the project.json file that was created when you ran dotnet new. Add the dependency to the CouchbaseNetClient package on NuGet get, specifying the correct version (2.4.0-dp1):


Introducing Couchbase .NET SDK Core 2.4.0 DP1!

Again using VIM or your favorite editor, open up the Program.cs file and enter the following code:


Introducing Couchbase .NET SDK Core 2.4.0 DP1!

Once you have done this, you'll just do a dotnet restore and dotnet run to update the dependencies and run the application. If everything works out, you should see the words SUCCESS written to the terminal.


Introducing Couchbase .NET SDK Core 2.4.0 DP1!
Community Shout Outs

This developer preview was months in the making and included several contributions from the community. A big shout out to Brant Burnett of CenterEdge Software for making core contributions and guidance with packaging and API migrations to Core supported libraries.

Contributing and reporting bugs

The Couchbase .NET SDK is always looking for community contributions and feedback. If you would wish to contribute, the Github repo is here . If you find a bug, create aJira ticket or do aforums post.

How to get it?

本文数据库(综合)相关术语:系统安全软件

主题: LinuxGitWindowsUbuntuSUUC
分页:12
转载请注明
本文标题:Introducing Couchbase .NET SDK Core 2.4.0 DP1!
本站链接:http://www.codesec.net/view/481659.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 数据库(综合) | 评论(0) | 阅读(48)