baseline: OpenMU upstream b5a0961 (fresh source)
This commit is contained in:
21
src/Persistence/EntityFramework/ConfigurationContext.cs
Normal file
21
src/Persistence/EntityFramework/ConfigurationContext.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// <copyright file="ConfigurationContext.cs" company="MUnique">
|
||||
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
|
||||
// </copyright>
|
||||
|
||||
namespace MUnique.OpenMU.Persistence.EntityFramework;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
/// <summary>
|
||||
/// Context to access the game configuration (read-only).
|
||||
/// </summary>
|
||||
public class ConfigurationContext : EntityDataContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ConfigurationContext"/> class.
|
||||
/// </summary>
|
||||
public ConfigurationContext()
|
||||
{
|
||||
this.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user