/// <summary> /// Sets MethodName to custom generation: "{prefix}{0}{delimeter}{1}{suffix}" /// </summary> /// <param name="prefix">Method Prefix</param> /// <param name="delimeter">Column Delimeter</param> /// <param name="suffix">Method Suffix</param> public void SetMethodNameGeneration(string prefix, string delimeter, string suffix) { methodNameGenerationMode = MethodNameGenerationMode.Custom; GenerateMethodName(prefix, delimeter, suffix); }
/// <summary> /// Sets MethodName to be value of the specified Extended Property from the database. /// </summary> /// <param name="extendedProperty">Value of the Extended Property.</param> public void SetMethodNameGeneration(string extendedProperty) { methodNameGenerationMode = MethodNameGenerationMode.ExtendedProperty; methodName = extendedProperty; }
/// <summary> /// Sets MethodName to default generation: "GetBy{0}{1}{n}" /// </summary> public void SetMethodNameGeneration() { methodNameGenerationMode = MethodNameGenerationMode.Default; GenerateMethodName("GetBy", String.Empty, String.Empty); }