Guest User

Untitled

a guest
Jun 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. def create_models
  2. # The where method here is from System.Linq
  3. @elem_svc.get_views.where( lambda{ |w| w.end_date.nil? }).each do |e|
  4. create_model(e)
  5. end
  6. end
  7.  
  8. # Creates each individual model for the assembly and queues up
  9. # the domain level classes that are need to support the models
  10. def create_model(view_obj)
  11. model_type, domains_to_create = @model_gen.generate(view_obj.name,
  12. @elem_svc.get_elements_in_view(view_obj.id))
  13. @domain_classes_to_create = @domain_classes_to_create | domains_to_create
  14. end
Add Comment
Please, Sign In to add comment