Skip to content

Instantly share code, notes, and snippets.

@rippinrobr
Created November 20, 2010 17:15
Show Gist options
  • Save rippinrobr/707974 to your computer and use it in GitHub Desktop.
Save rippinrobr/707974 to your computer and use it in GitHub Desktop.
Creates a call to the repo class
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