Skip to content

Commit cc38c26

Browse files
Merge pull request #27 from cmdscale/fmt/markdown
Fix/Improve markdown formatting.
2 parents e1bad03 + 1e3e4de commit cc38c26

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ For answers to common questions about this code of conduct, see the FAQ at
129129
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130130
[Mozilla CoC]: https://github.com/mozilla/diversity
131131
[FAQ]: https://www.contributor-covenant.org/faq
132-
[translations]: https://www.contributor-covenant.org/translations
132+
[translations]: https://www.contributor-covenant.org/translations

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This repository provides the essential libraries and tooling to seamlessly integ
1212

1313
- **CmdScale.EntityFrameworkCore.TimescaleDB**: The core runtime library. You include this in your project to enable TimescaleDB-specific features when configuring your `DbContext`.
1414
- **CmdScale.EntityFrameworkCore.TimescaleDB.Design**: Provides crucial design-time extensions. This package enhances the EF Core CLI tools (`dotnet ef`) to understand TimescaleDB concepts, enabling correct schema generation for migrations and scaffolding.
15+
1516
---
1617

1718
## ✨ Features
@@ -44,6 +45,7 @@ Create and manage **TimescaleDB continuous aggregates** — automatically refres
4445
---
4546

4647
## 📦 NuGet Packages
48+
4749
To get started, install the necessary packages from NuGet. For a typical project, you will need both.
4850

4951
| Package | Description |
@@ -70,10 +72,13 @@ builder.Services.AddDbContext<TimescaleContext>(options =>
7072
---
7173

7274
## 🔧 Fluent API Example
75+
7376
The Fluent API provides a powerful, type-safe way to configure your entities. Use the `.IsHypertable()` extension method on an entity builder to designate it as a hypertable and configure its properties.
7477

7578
### Model
79+
7680
A standard POCO class representing our time-series data.
81+
7782
```csharp
7883
public class WeatherData
7984
{
@@ -85,7 +90,9 @@ public class WeatherData
8590
```
8691

8792
### Configuration
93+
8894
In a separate configuration class, you can define the hypertable settings.
95+
8996
```csharp
9097
public class WeatherDataConfiguration : IEntityTypeConfiguration<WeatherData>
9198
{
@@ -109,6 +116,7 @@ public class WeatherDataConfiguration : IEntityTypeConfiguration<WeatherData>
109116
---
110117

111118
## 🏷️ Data Annotations Example
119+
112120
For simpler configurations, you can use the [Hypertable] attribute directly on your model class.
113121

114122
```csharp
@@ -134,14 +142,18 @@ public class DeviceReading
134142
For convenient local development, a `docker-compose.yml` file is included in the **Solution Items**. This allows you to spin up a pre-configured TimescaleDB instance with a single command.
135143

136144
### Start TimescaleDB container
145+
137146
From the solution root, run:
147+
138148
```bash
139149
docker-compose up -d
140150
```
141151

142-
### Resetting the Database Environment
152+
### Resetting the Database Environment
153+
143154
If you need to start with a completely fresh, empty database, you can stop the running container and permanently delete all of its data.
144155
> **Warning**: This command is destructive and will erase all tables and data stored in your local TimescaleDB instance.
156+
145157
```bash
146158
docker-compose down -v
147159
```
@@ -209,15 +221,19 @@ Results are generated in `StrykerOutput/reports/mutation-report.html`. See `STRY
209221
---
210222

211223
## 🛠️ Scripts
224+
212225
This repository includes PowerShell scripts to streamline the development workflow, particularly for switching between local project development and package-based testing.
213226

214227
### Allow PowerShell Scripts to Run
228+
215229
To run these scripts, you may first need to change the execution policy for the current process:
230+
216231
```powershell
217232
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
218233
```
219234

220235
### Switch Project/Package References
236+
221237
These script modify your `.csproj` files to switch between referencing the core libraries as direct project or as local NuGet packages.
222238

223239
Switch to **project references** (ideal for active development):
@@ -235,6 +251,7 @@ Switch to **NuGet package references** (to simulate a real-world consumer):
235251
---
236252

237253
## 📦 Publish Local NuGet Package
254+
238255
To build and publish the core libraries to a local NuGet feed for testing, use the central publishing script. Note that this also done automatically by the `.\SwitchToPackageReferences.ps1` script.
239256

240257
```powershell
@@ -328,7 +345,8 @@ Thank you for contributing! 💜
328345
---
329346

330347
# 📄 License
331-
```
348+
349+
```txt
332350
MIT License
333351
Copyright (c) 2025 CmdScale GmbH
334352

0 commit comments

Comments
 (0)