Created
April 4, 2011 20:45
-
-
Save robashton/902392 to your computer and use it in GitHub Desktop.
Finding the method being loaded
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
var actualCall = dynamicMethodCalls.Last(); | |
var current = actualCall.Previous; | |
if(current.OpCode.Code == Code.Ldstr) | |
{ | |
columnType = typeof (string); | |
} | |
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
string tableName = references[0]; | |
string columnName = references[1].Replace("FindBy", ""); | |
Type columnType = null; | |
model.Table(tableName) | |
.Column(columnName) | |
.SetType(columnType); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment