public void Test_InsertComperhensive() { GHComprehensive c = new GHComprehensive() { 统一编号 = "370101040001", 名称 = "西蒋峪村北侧地面塌陷333", 灾害类型 = "塌陷", 国际代码 = "370101", GHDebrisFlow = new GHDebrisFlow() { 统一编号 = "370101040001", 名称 = "西蒋峪村北侧地面塌陷333" } }; GHComprehensive c1 = new GHComprehensive() { 统一编号 = "370101040004", 名称 = "西蒋峪村北侧地面塌陷77777", 灾害类型 = "塌陷", 国际代码 = "370101", GHLandSubsidence = new GHLandSubsidence() { 统一编号 = "370101040001", 名称 = "西蒋峪村北侧地面塌陷333" } }; this._service.New(c); this._service.New(c1); }
public void Test_InsertComperhensive() { GHComprehensive c = new GHComprehensive() { 统一编号 = "370101040001", 称 = "西蒋峪村北侧地面塌陷333", 灾害类型 = "塌陷", 国际代码 = "370101", GHDebrisFlow = new GHDebrisFlow() { 统一编号 = "370101040001", 称 = "西蒋峪村北侧地面塌陷333" } }; GHComprehensive c1 = new GHComprehensive() { 统一编号 = "370101040004", 称 = "西蒋峪村北侧地面塌陷77777", 灾害类型 = "塌陷", 国际代码 = "370101", GHLandSubsidence = new GHLandSubsidence() { 统一编号 = "370101040001", 称 = "西蒋峪村北侧地面塌陷333" } }; this._service.New(c); this._service.New(c1); }
public void Test_QueryByUnifieldId() { IDbContext db = new R2DisasterContext(); IRepository <GHComprehensive> re = new EFRepository <GHComprehensive>(db); IGHComprehensiveService service = new GHComprehensiveService(re); string id = ""; GHComprehensive c = service.GetByUnifiedID(id); }
/// <summary> /// 新增 /// </summary> /// <param name="ghc"></param> public void New(GHComprehensive ghc) { this._comprehensiveRepository.Insert(ghc); }