twitter bootstrap - Implement Multiple Models in Different Servers On Single View -
twitter bootstrap - Implement Multiple Models in Different Servers On Single View -
good morning,
first, environment:
vs 2013 asp.net mvc5 ef5 (forcibly because vs wouldn't allow me take ef6) plant info on sql server in server contains db_a plant b info on sql server in server b contains db_bi creating page display production info coming scada system. so, thought maybe asp.net mvc w/ bootstrap carousel blow bosses' minds. tried this illustration , this 1 complementing asp.net mvc 5 database first tutorial. dbs same, except taking in info different plants, eg. db name same, column names same.
when create model a, shows model.cs dba under model edmx, when create model b, shows under model b edmx.
my problem starts when need bring together both models utilize on view. both examples show different models yes on same database; mine in different servers.
how can go this?
poluskinha
if databases same can utilize same model house them (one edmx file). can dictate info coming using appropriate connection string.
what create repository layer can query both databases , homecoming things single list containing products both plants.
with repository layer managing info access can treat mvc part of app other app uses single server.
one issue have think fact identical tables going have id collisions. if you're planning on doing more reads of info you're going have reconcile this.
twitter-bootstrap sql-server-2008-r2 asp.net-mvc-5
Comments
Post a Comment