SqlFunctions.Replicate Method (String, Nullable<Int32>)
Repeats a string value a specified number of times.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "count")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "target")] [DbFunctionAttribute("SqlServer", "REPLICATE")] public static string Replicate( string target, Nullable<int> count )
Parameters
- target
-
Type:
System.String
A valid string.
- count
-
Type:
System.Nullable<Int32>
The value that specifies how many time to repeat target .
Return Value
Type: System.StringThe target string, repeated the number of times specified by count .