Skip to content
Browse files

readthedocs doesnt like .. code:: syntax

  • Loading branch information...
1 parent 7419070 commit 264d87f5998540d2127dea449a22fe379c6f15d9 @seif seif committed Oct 6, 2012
View
16 Artefacts/Documentation/source/getting started/simple-crud-application.rst
@@ -25,7 +25,7 @@ Due to NHibernate, all properties must be marked virtual. We'll only
have one property for this class, a string titled Name. When you're
done, your class should look like this:
-.. code:: c#
+::
namespace IceCreamYouScreamCorp.Domain
{
@@ -50,7 +50,7 @@ Express with a database named IceCreamDb. You'll need to figure out your
own connection string, but once you do, find the
"connection.connection\_string" tags:
-.. code:: xml
+::
<property name="connection.connection_string">Server=localhost\SQLEXPRESS;Initial Catalog=IceCreamDb;Integrated Security=SSPI;</property>
@@ -96,7 +96,7 @@ need to talk to your database. As such, let's create a local field,
``private readonly INHibernateRepository<Product> productRepository;``
and inject it into our controller:
-.. code:: c#
+::
public ProductsController(INHibernateRepository<Product> productRepository)
{
@@ -115,7 +115,7 @@ Now we're all setup let's we'll need to do the following things:
Returning all products on the ``Index`` ActionResult:
-.. code:: c#
+::
public ActionResult Index()
{
@@ -125,7 +125,7 @@ Returning all products on the ``Index`` ActionResult:
Return a single product and display it on an editable form:
-.. code:: c#
+::
[Transaction]
[HttpGet]
@@ -137,7 +137,7 @@ Return a single product and display it on an editable form:
Post the result, return the object if it is invalid:
-.. code:: c#
+::
[Transaction]
[ValidateAntiForgeryToken]
@@ -181,7 +181,7 @@ complete, you can run the application to see it in action.
Index.cshtml:
-.. code:: html
+::
@using IceCreamYouScreamCorp.Web.Mvc
@model IEnumerable<IceCreamYouScreamCorp.Domain.Product>
@@ -225,7 +225,7 @@ Index.cshtml:
CreateOrUpdate.cshtml:
-.. code:: html
+::
@model IceCreamYouScreamCorp.Domain.Product
View
15 ...ntation/source/nhibernate/using-sharparchitecture-with-nhibernate.search-(lucene.net).rst
@@ -1,8 +1,7 @@
S#arp Architecture with NHibernate.Search
=========================================
- ``Note``
-
+.. note::
*Do* **not** *use this with NHibernate Configuration Cache:*
NHibernateSession.ConfigurationCache = new NHibernateConfigurationFileCache();
@@ -31,7 +30,7 @@ Open up your root Web.Config, add the following right above :
Right below add the following:
-.. code:: xml
+::
<nhs-configuration xmlns='urn:nhs-configuration-1.0'>
<search-factory>
@@ -41,7 +40,7 @@ Right below add the following:
Navigate to your NHibernate.Config, before add:
-.. code:: xml
+::
<listener class='NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search' type='post-insert'/>
<listener class='NHibernate.Search.Event.FullTextIndexEventListener, NHibernate.Search' type='post-update'/>
@@ -54,7 +53,7 @@ In "Northwind.Infrastructure" add a repository called
"ContractRepository.cs" (the example assumes you have an object you want
to search over called contract):
-.. code:: c#
+::
public interface IContractRepository
{
@@ -66,7 +65,7 @@ Let's add a method to this repository that will create the initial
index, if an index already exists, it will be deleted. We'll iterate
through all the Suppliers to accomplish this:
-.. code:: c#
+::
public void BuildSearchIndex()
{
@@ -120,7 +119,7 @@ through all the Suppliers to accomplish this:
Finally, we'll add a method to query the index:
-.. code:: c#
+::
private static string GetIndexDirectory()
{
@@ -132,7 +131,7 @@ Finally, we'll add a method to query the index:
Add Search Controller
---------------------
-.. code:: c#
+::
namespace Northwind.Web.Controllers
{
View
4 Artefacts/Documentation/source/updating/nuget.rst
@@ -3,7 +3,7 @@ Updating dependencies via nuget
In Visual Studio, open the Package Manager Console, and run:
-.. code:: powershell
+::
Update-Package -Safe
@@ -16,7 +16,7 @@ files (including the test projects). Luckily this can be done easily
with nuget, in the Package Manager Console select each project you want
to add assembly binding redirects to and run:
-.. code:: powershell
+::
foreach ($proj in get-project -all) {Add-BindingRedirect}

0 comments on commit 264d87f

Please sign in to comment.
Something went wrong with that request. Please try again.