Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 078f2cc

Browse files
committed
feat: changed db entity property mapping and added environment variable for timer expression
1 parent 80b6045 commit 078f2cc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/ServiceLayer.Mesh/Data/ServiceLayerDbConext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
1111
{
1212
// Configure relationships, keys, etc.
1313
modelBuilder.Entity<MeshFile>().HasKey(p => p.FileId);
14+
modelBuilder.Entity<MeshFile>().Property(e => e.Status).HasConversion<string>();
15+
modelBuilder.Entity<MeshFile>().Property(e => e.FileType).HasConversion<string>();
1416
}
1517
}

src/ServiceLayer.Mesh/Functions/DiscoveryFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public DiscoveryFunction(ILogger<DiscoveryFunction> logger, IMeshInboxService me
2424
}
2525

2626
[Function("DiscoveryFunction")]
27-
public async Task Run([TimerTrigger("0 */1 * * * *")] TimerInfo myTimer)
27+
public async Task Run([TimerTrigger("%DiscoveryTimerExpression%")] TimerInfo myTimer)
2828
{
2929
_logger.LogInformation($"DiscoveryFunction started at: {DateTime.Now}");
3030

src/ServiceLayer.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceLayer.Mesh", "Servic
1313
EndProject
1414
Global
1515
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16-
Debug|Any CPU = Debug|Any CPU
16+
Debug|Any CPU = Debug|Any CPU
1717
Debug|x64 = Debug|x64
1818
Debug|x86 = Debug|x86
1919
Release|Any CPU = Release|Any CPU

0 commit comments

Comments
 (0)