SqlServerSpecificCreator.CreateLikeParameter Method |
Creates a valid Parameter for the pattern in a LIKE statement. This is a special case, because it shouldn't rely on the type of the
field the LIKE statement is used with but should be the unicode varchar type.
Namespace:
SD.LLBLGen.Pro.DQE.SqlServer
Assembly:
SD.LLBLGen.Pro.DQE.SqlServer (in SD.LLBLGen.Pro.DQE.SqlServer.dll) Version: 5.12.0.0 (5.12.0)
Syntaxpublic override DbParameter CreateLikeParameter(
string pattern,
string targetFieldDbType
)
Public Overrides Function CreateLikeParameter (
pattern As String,
targetFieldDbType As String
) As DbParameter
Parameters
- pattern
- Type: System.String
The pattern to be passed as the value for the parameter. Is used to determine length of the parameter. - targetFieldDbType
- Type: System.String
Type of the target field db, in provider specific enum string format (e.g. "Int" for "Int)
Return Value
Type:
DbParameter
Valid parameter for usage with the target database.
Implements
IDbSpecificCreator.CreateLikeParameter(String, String)
RemarksThis version ignores targetFieldDbType and calls CreateLikeParameter(fieldname, pattern). When you override this one, also
override the other.
See Also