-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuses the sample from OS X. Fixes #5
- Loading branch information
Nate McMaster
committed
Jul 27, 2015
1 parent
0148937
commit ffe944b
Showing
4 changed files
with
258 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,84 @@ | ||
.. include:: /stub-topic.txt | ||
|
||
|stub-icon| Getting Started on Linux | ||
Getting Started on Linux | ||
==================================== | ||
|
||
.. include:: /stub-notice.txt | ||
This walkthrough will create a simple console application using ASP.NET 5 and | ||
the SQLite provider. | ||
|
||
.. note:: | ||
This article was written for beta 6 of ASP.NET and EF7. | ||
|
||
You can find nightly builds of the EF7 code base hosted on https://www.myget.org/F/aspnetvnext/api/v2/ but the code base is rapidly changing and we do not maintain up-to-date documentation for getting started. | ||
|
||
|
||
In this article | ||
- `Prerequisites`_ | ||
- `Install ASP.NET 5`_ | ||
- `Create a new project`_ | ||
- `Create your model`_ | ||
- `Create your database`_ | ||
- `Use your model`_ | ||
- `Start your app`_ | ||
|
||
.. note:: `View this article's samples on GitHub <https://github.com/aspnet/EntityFramework.Docs/tree/master/docs/getting-started/x-plat/sample>`_. | ||
|
||
|
||
Prerequisites | ||
------------- | ||
|
||
Minimum system requirements | ||
- Mono 4.0.2 | ||
- Ubuntu, Debian or one of their derivatives | ||
|
||
.. caution:: | ||
**Known Issues** | ||
|
||
- Bugs in Mono 4.0.2 may cause Entity Framework to crash when using async methods. This is resolved with Mono >4.2.0, which has not yet been publicly released. `See this issue on GitHub <https://github.com/aspnet/EntityFramework/issues/2708>`_ | ||
- Migrations on SQLite do not support more complex schema changes due to limitations in SQLite itself. | ||
|
||
.. TODO add workaround demo for SQLite rebuilds | ||
Install ASP.NET 5 | ||
----------------- | ||
|
||
A summary of steps to install ASP.NET 5 are included below. For a more up-to-date guide, follow the steps for `Installing ASP.NET 5 on Linux <http://docs.asp.net/en/latest/getting-started/installing-on-linux.html>`_. This will ensure you meet the following requirements. | ||
|
||
The following steps will install `dnvm <https://github.com/aspnet/home#running-an-application>`_, a command-line tool for installing the .NET Execution environment. | ||
|
||
- Install the required libraries | ||
|
||
.. code-block:: console | ||
~ $ sudo apt-get install libunwind8 libssl-dev unzip | ||
- Install mono. | ||
|
||
.. code-block:: console | ||
~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | ||
~ $ echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list | ||
~ $ sudo apt-get update | ||
~ $ sudo apt-get install mono-complete | ||
- Import required certificates for Nuget | ||
|
||
.. code-block:: console | ||
~ $ mozroots --import --sync | ||
- Run the dnvm | ||
|
||
.. code-block:: console | ||
~ $ curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh | ||
- Verify dnvm has the latest version | ||
|
||
.. code-block:: console | ||
~ $ dnvm upgrade | ||
If you have trouble installing dnvm, consult this `Getting Started guide <http://dotnet.github.io/core/getting-started/>`_. | ||
|
||
|
||
.. _issue: https://github.com/aspnet/EntityFramework.Docs/issues/5 | ||
.. include:: xplat.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace ConsoleApp | ||
{ | ||
|
Oops, something went wrong.