如何使用Asp.Net阅读复杂的Excel类例程
实际上我不懂如何使用Asp.Net来读取excel类的例程,并将数据存储到MongoDB中。 请帮我解决这个问题。
我的例程模型类如下所示
public class Routine { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } public string DayName { get; set; } public ICollection<TimeSlotClass> Classes { get; set; } } public class TimeSlotClass { public string TimeSlot { get; set; } public string RoomNo { get; set; } public string CourseCode { get; set; } public Boolean isNoClass { get; set; } public string TeachersInitial { get; set; } }
而我的例行excel示例是