i new sp.net mvc, excuse me missing basic stuff.
i have created website working database (microsoft sql server) , i'm using entity framework package manage it.
i have databasemanager class following:
public class databasemanager : dbcontext { public dbset<connection> connections { get; set; } . . . }
my application listens syslog connections , updates connections member accordingly:
db.connections.add(new connection(sourceip, destinationip)) db.savechanges();
anyway, weird may seem, when add connection dbcontext 2 connection added (both identical) instead of one.
what might problem?
if have registered event listener twice or included registering file (may js file) twice, issue come. can time check @ firebug list of events attached..
Comments
Post a Comment