示例#1
0
 public int AddStore(Store store, aspnet_User user)
 {
     store.UserID = user.UserId;
     webstoredata.Stores.InsertOnSubmit(store);
     webstoredata.SubmitChanges();
     return store.StoreID;
 }
示例#2
0
 public bool IsProductOwner(int productid, aspnet_User user)
 {
     var product = GetProduct(productid);
     if (product.Store.UserID == user.UserId) return true;
     else return false;
 }
示例#3
0
 partial void Deleteaspnet_User(aspnet_User instance);
示例#4
0
 partial void Updateaspnet_User(aspnet_User instance);
示例#5
0
 partial void Insertaspnet_User(aspnet_User instance);
示例#6
0
		private void detach_aspnet_Users(aspnet_User entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Application = null;
		}
示例#7
0
 public bool IsValidStore(int storeid, aspnet_User user)
 {
     var store = GetStore(storeid);
     if (store.UserID == user.UserId) return true;
     else return false;
 }