Created
November 20, 2010 17:15
-
-
Save rippinrobr/707974 to your computer and use it in GitHub Desktop.
Creates a call to the repo class
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
def create_repo_method_call(method_name) | |
repo_call = CodeMethodInvokeExpression.new() | |
repo_call.Method = CodeMethodReferenceExpression.new( | |
CodeTypeReferenceExpression.new( CodeTypeReference.new("_repo")), | |
method_name, | |
@code_type_ref_of_model.ToArray) | |
repo_call | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment