コード例 #1
0
        public void UpdateFollowedConnection(FollowedConnection OldConnection, FollowedConnection newConnection)
        {
            var c = (from FollowedConnection fo in context.FollowedConnections where fo == OldConnection select fo).FirstOrDefault();

            c = newConnection;
            context.SaveChanges();
        }
コード例 #2
0
 public void DeleteFollowedConnection(FollowedConnection c)
 {
     context.FollowedConnections.Remove(c);
     context.SaveChanges();
 }
コード例 #3
0
 public void AddFollowedConnection(FollowedConnection c)
 {
     context.FollowedConnections.Add(c);
     context.SaveChanges();
 }