Skip to content

Commit

Permalink
✅ Fix build warnings
Browse files Browse the repository at this point in the history
Fixing various build warnings that had crept in.
C# syntax highlighter doesn't support string interpolation yet, so just
moving to concatenation for the moment.
  • Loading branch information
rowanmiller committed Feb 27, 2016
1 parent 1faed6a commit 6d06ce1
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/miscellaneous/configuring-dbcontext.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Constructor argument
This approach can be used with or without dependency injection.

.. code-block:: csharp
:caption: Context code
:caption: Context code with constructor
public class BloggingContext : DbContext
{
Expand Down Expand Up @@ -102,7 +102,7 @@ OnConfiguring
target the full database). See `Combinations`_.

.. code-block:: csharp
:caption: Context code
:caption: Context code with OnConfiguring
public class BloggingContext : DbContext
{
Expand Down
2 changes: 1 addition & 1 deletion docs/miscellaneous/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Miscellaneous

.. toctree::
:titlesonly:
:caption: The following articles are available
:caption: The following articles cover miscellaneous topics

logging
testing
Expand Down
1 change: 0 additions & 1 deletion docs/platforms/aspnetcore/existing-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ To enable reverse engineering from an existing database we need to install a cou
* Locate the ``commands`` section and add the ``ef`` command as shown below

.. literalinclude:: sample/src/EFGetStarted.AspNet5.ExistingDb/project.json
:language: json
:linenos:
:lines: 26-29
:emphasize-lines: 3
Expand Down
1 change: 0 additions & 1 deletion docs/platforms/aspnetcore/new-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ Later in this walkthrough we will also be using some Entity Framework commands t
* Locate the ``commands`` section and add the ``ef`` command as shown below

.. literalinclude:: sample/src/EFGetStarted.AspNet5.NewDb/project.json
:language: json
:linenos:
:lines: 25-29
:emphasize-lines: 3
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/coreclr/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EF can be used on all platforms (Windows, OSX, Linux, etc.) that support .NET Co

.. toctree::
:titlesonly:
:caption: The following articles are available
:caption: The following .NET Core articles are available

getting-started-linux
getting-started-osx
2 changes: 1 addition & 1 deletion docs/platforms/full-dotnet/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ These articles provide documentation for using EF on the full .NET Framework (Co

.. toctree::
:titlesonly:
:caption: The following articles are available
:caption: The following Full .NET Framework articles are available

getting-started
2 changes: 1 addition & 1 deletion docs/platforms/uwp/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ These articles provide documentation for using EF on Universal Windows Platform.

.. toctree::
:titlesonly:
:caption: The following articles are available
:caption: The following UWP articles are available

getting-started
netnative
2 changes: 1 addition & 1 deletion docs/platforms/uwp/sample/EFGetStarted.UWP/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class BloggingContext : DbContext

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite($"Filename=Blogging.db");
optionsBuilder.UseSqlite("Filename=Blogging.db");
}

protected override void OnModelCreating(ModelBuilder modelBuilder)
Expand Down
2 changes: 1 addition & 1 deletion docs/saving/sample/EFSaving/Basics/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void Run()
db.Blogs.Add(blog);
db.SaveChanges();

Console.WriteLine($"{blog.BlogId}: {blog.Url}");
Console.WriteLine(blog.BlogId + ": " + blog.Url);
}

using (var db = new BloggingContext())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void Run()

foreach (var employee in db.Employees)
{
Console.WriteLine($"{employee.EmployeeId}: {employee.Name}, {employee.EmploymentStarted}");
Console.WriteLine(employee.EmployeeId + ": " + employee.Name + ", " + employee.EmploymentStarted);
}
}

Expand Down Expand Up @@ -51,7 +51,7 @@ public static void Run()

foreach (var employee in db.Employees)
{
Console.WriteLine($"{employee.EmployeeId}: {employee.Name}");
Console.WriteLine(employee.EmployeeId + ": " + employee.Name);
}
}
}
Expand Down

0 comments on commit 6d06ce1

Please sign in to comment.