HiLoValueGeneratorState Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The thread safe state used by HiLoValueGenerator<TValue>.
public class HiLoValueGeneratorState
public class HiLoValueGeneratorState : IDisposable
type HiLoValueGeneratorState = class
type HiLoValueGeneratorState = class
interface IDisposable
Public Class HiLoValueGeneratorState
Public Class HiLoValueGeneratorState
Implements IDisposable
- Inheritance
-
HiLoValueGeneratorState
- Implements
Remarks
See EF Core value generation for more information and examples.
Constructors
HiLoValueGeneratorState(Int32) |
Initializes a new instance of the HiLoValueGeneratorState class. |
Methods
Dispose() |
Releases the allocated resources for this instance. |
Next<TValue>(Func<Int64>) |
Gets a value to be assigned to a property. |
NextAsync<TValue>(Func<CancellationToken,Task<Int64>>, CancellationToken) |
Gets a value to be assigned to a property. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för