Created
March 1, 2012 08:01
-
-
Save codereflection/1948171 to your computer and use it in GitHub Desktop.
Another WTF moment...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyCompany.Data | |
{ | |
internal class StoredProcedureManager | |
{ | |
public static string GetStoredProcedureName(StoredProcedure storedProcedure) | |
{ | |
switch (storedProcedure) | |
{ | |
case StoredProcedure.GetAllDataByUser: | |
return "GetClientAccountsByUser"; | |
case StoredProcedure.GetAccountCategoryData: | |
return "SelectCategoryData"; | |
case StoredProcedure.MergeAfterBulkInsert: | |
return "SomeOtherStoredProcedure"; | |
} | |
return ""; | |
} | |
} | |
internal enum StoredProcedure | |
{ | |
GetAllDataByUser = 0, | |
GetAccountVenueData = 1, | |
MergeAfterBulkInsert = 2, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment