DateTimeReference is null
- Dominant language
- C#
- Stars
- 9.7k
- Forks
- 538
- PR merge metrics
- No merged PRs in 30d
Description
### Bogus NuGet Package
not sure - the one that is currently included in dbatools
### .NET Version
Current plain Windows Server 2022
### Visual Studio Version
none
### What operating system are you using?
Windows
### What locale are you using with Bogus?
en
### Problem Description
We have problems with the new property "DateTimeReference" because it is empty.
Please have a look at this PR where we implemented a workaround: https://github.com/dataplat/dbatools/pull/9716
It would be nice to have some more background information so that we can change our code correctly. Or is this a bug on your side?
### LINQPad Example or Reproduction Steps
```
$script:faker = New-Object Bogus.Faker('en')
$supportedFakerSubTypes = ($script:faker | Get-Member -MemberType Property) | ForEach-Object { ($script:faker.$($_.Name)) | Get-Member -MemberType Method | Where-Object { $_.Name -notlike 'To*' -and $_.Name -notlike 'Get*' -and $_.Name -notlike 'Trim*' -and $_.Name -notin 'Add', 'Equals', 'CompareTo', 'Clone', 'Contains', 'CopyTo', 'EndsWith', 'IndexOf', 'IndexOfAny', 'Insert', 'IsNormalized', 'LastIndexOf', 'LastIndexOfAny', 'Normalize', 'PadLeft', 'PadRight', 'Remove', 'Replace', 'Split', 'StartsWith', 'Substring', 'Letter', 'Lines', 'Paragraph', 'Paragraphs', 'Sentence', 'Sentences' } | Select-Object name -ExpandProperty Name }
```
### Expected Behavior
-
### Actual Behavior
-
### Known Workarounds
_No response_
### Could you help with a pull-request?
No
Contributor guide
Research direction
Start by reviewing the DateTimeReference property on Bogus.Faker and the workaround in dbatools PR #9716. Reproduce the null value using the supplied PowerShell/LINQPad example, then determine the intended behavior and document or fix it so the property has a clear, verified result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100