Dr.Ajay Kashyap

Dr.Ajay Kashyap

  • NA
  • 521
  • 285k

i have a questions on Asp.Net MVC

Jun 10 2016 2:21 AM
i am getting error during the creation of View ? i am using multiple table in single model
 
 
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShopInDeal.ViewModels
{
class BusinessViewModel
{
//BusinessTable (table name)
 
public int ShopId { get; set; }
public string ShopName { get; set; }
public Nullable<bool> FlagApproval { get; set; }
public Nullable<int> Createdby { get; set; }
public Nullable<System.DateTime> CreatedOn { get; set; }
public Nullable<int> UpdatedBy { get; set; }
public Nullable<System.DateTime> UpdatedOn { get; set; }
public Nullable<bool> Active { get; set; }
 
 
//BusinessLocation (table name)
  
public int LocationID { get; set; }
public string Location { get; set; }
//public Nullable<int> ShopId { get; set; }
public string Longitude { get; set; }
public string Latitude { get; set; }
//public Nullable<int> Createdby { get; set; }
//public Nullable<System.DateTime> CreatedOn { get; set; }
//public Nullable<int> UpdatedBy { get; set; }
//public Nullable<System.DateTime> UpdatedOn { get; set; }
//public Nullable<bool> Active { get; set; }
 
//Business_CatagoryRelation (table name)
 
public int shopcategoryrelationid { get; set; }
public Nullable<int> shopId { get; set; }
public Nullable<int> CategoryId { get; set; }
//public Nullable<int> Createdby { get; set; }
//public Nullable<System.DateTime> CreatedOn { get; set; }
//public Nullable<int> UpdatedBy { get; set; }
//public Nullable<System.DateTime> UpdatedOn { get; set; }
//public Nullable<bool> Active { get; set; }
 
 
//Business_SubCatagoryRelation (table name)
 
public int shopsubcategoryrelationid { get; set; }
//public Nullable<int> shopId { get; set; }
//public Nullable<int> CategoryId { get; set; }
public Nullable<int> SubCategoryId { get; set; }
//public Nullable<int> Createdby { get; set; }
//public Nullable<System.DateTime> CreatedOn { get; set; }
//public Nullable<int> UpdatedBy { get; set; }
//public Nullable<System.DateTime> UpdatedOn { get; set; }
//public Nullable<bool> Active { get; set; }
}
}

Answers (2)