public void logIP(string IPaddr) { IPaddress ip = new IPaddress(); ip.IPaddr = IPaddr; ip.Timestamp = DateTime.Now; ip.UserID = 10; db.IPaddresses.InsertOnSubmit(ip); db.SubmitChanges(); }
public void Add(IPaddress ip) { db.IPaddresses.InsertOnSubmit(ip); }
partial void DeleteIPaddress(IPaddress instance);
partial void UpdateIPaddress(IPaddress instance);
partial void InsertIPaddress(IPaddress instance);
private void detach_IPaddresses(IPaddress entity) { this.SendPropertyChanging(); entity.User = null; }
private void attach_IPaddresses(IPaddress entity) { this.SendPropertyChanging(); entity.User = this; }