I have written a class which has the fields name,Reg_No,etc.
public int Reg_No { get; set; }
public string Name { get; set; }
my case reg no will be like " 1", "be01 " in mongo db the field type will be int32 for value 1 and string for be01
in my class i have tried both string and int data type, I' am facing the following error. An error occurred while de serializing the Reg_No property of class Mongo_Studentattendance: Input string was not in a correct format.
Please help me to solve this and guide me to proceed further.