Skip to content

Commit e1715f4

Browse files
committed
more file casing woes
1 parent acc137d commit e1715f4

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

Services.Host/SelfHostEnvironment.dbl

+4-4
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ namespace Services.Host
158158
Startup.LogicalNames.Add(fileSpec)
159159
end
160160

161-
fileSpec = "DAT:CUSTOMER_EX.ism"
161+
fileSpec = "DAT:customer_ex.ism"
162162
if (fileSpec.Contains(":")) then
163163
begin
164164
logical = fileSpec.Split(":")[1].ToUpper()
@@ -379,7 +379,7 @@ namespace Services.Host
379379

380380
;;Create and load the customerExs file
381381

382-
dataFile = "DAT:CUSTOMER_EX.ism"
382+
dataFile = "DAT:customer_ex.ism"
383383
xcall parse(dataFile.ToLower(),1,,,,,fileExtension)
384384
xdlFile = "@" + dataFile.ToLower().Replace(%atrim(fileExtension),".xdl")
385385

@@ -546,7 +546,7 @@ namespace Services.Host
546546
;;Delete the customerExs file
547547
try
548548
begin
549-
xcall delet("DAT:CUSTOMER_EX.ism")
549+
xcall delet("DAT:customer_ex.ism")
550550
end
551551
catch (e, @NoFileFoundException)
552552
begin
@@ -767,7 +767,7 @@ namespace Services.Host
767767

768768
public static method loadCustomerExs, @List<CustomerEx>
769769
proc
770-
data dataFile = "DAT:CUSTOMER_EX.ism"
770+
data dataFile = "DAT:customer_ex.ism"
771771
data fileExtension, a10
772772
xcall parse(dataFile.ToLower(),1,,,,,fileExtension)
773773
data textFile = dataFile.ToLower().Replace(%atrim(fileExtension),".txt")

Services.Models/CustomerEx.dbl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Title: CustomerEx.dbl
44
;;
55
;; Description: Data model representing data defined by the repository
6-
;; structure CUSTOMER_EX and from the data file DAT:CUSTOMER_EX.ism.
6+
;; structure CUSTOMER_EX and from the data file DAT:customer_ex.ism.
77
;;
88
;;*****************************************************************************
99
;; WARNING: GENERATED CODE!

Services.Test.GenerateValues/GenerateTestValues.dbl

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace Services.Test
4646
private mOrderFileSpec, string, "DAT:orders.ism"
4747
private mOrderItemFileSpec, string, "DAT:order_items.ism"
4848
private mVendorFileSpec, string, "DAT:vendors.ism"
49-
private mCustomerExFileSpec, string, "DAT:CUSTOMER_EX.ism"
49+
private mCustomerExFileSpec, string, "DAT:customer_ex.ism"
5050
private mNonuniquepkFileSpec, string, "DAT:nonuniquepk.ism"
5151
private mDifferentpkFileSpec, string, "DAT:differentpk.ism"
5252
private mTestcarFileSpec, string, "DAT:testcar.ism"
@@ -377,7 +377,7 @@ namespace Services.Test
377377
;------------------------------------------------------------
378378
;Test data for CustomerEx
379379

380-
Console.WriteLine("Processing file DAT:CUSTOMER_EX.ism")
380+
Console.WriteLine("Processing file DAT:customer_ex.ism")
381381

382382
;If there is a GetCustomFileSpec method, call it
383383
GetCustomFileSpec(mCustomerExFileSpec)
@@ -387,7 +387,7 @@ namespace Services.Test
387387

388388
;;------------------------------------------------------------
389389
;;Test data for CustomerEx
390-
chin = ChannelManager.GetChannel("DAT:CUSTOMER_EX.ism", FileOpenMode.InputIndexed)
390+
chin = ChannelManager.GetChannel("DAT:customer_ex.ism", FileOpenMode.InputIndexed)
391391

392392
;Total number of records
393393
Console.WriteLine(" - Counting records...")
@@ -401,7 +401,7 @@ namespace Services.Test
401401
if (count) then
402402
TestConstants.Instance.GetCustomerExs_Count = count
403403
else
404-
Console.WriteLine("ERROR: Failed to read record from DAT:CUSTOMER_EX.ism")
404+
Console.WriteLine("ERROR: Failed to read record from DAT:customer_ex.ism")
405405
exitloop
406406
end
407407
;Get by primary key
@@ -412,7 +412,7 @@ namespace Services.Test
412412
TestConstants.Instance.GetCustomerEx_Customerid = customerEx.customerid
413413
exitloop
414414
eofCustomerEx2,
415-
Console.WriteLine("ERROR: Failed to read first record from DAT:CUSTOMER_EX.ism")
415+
Console.WriteLine("ERROR: Failed to read first record from DAT:customer_ex.ism")
416416
exitloop
417417
end
418418

Services.Test/DataGenerators/CustomerExLoader.dbl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Services.Test.DataGenerators
1919

2020
public static method LoadFromFile, @List<CustomerEx>
2121
proc
22-
data dataFile = "DAT:CUSTOMER_EX.ism"
22+
data dataFile = "DAT:customer_ex.ism"
2323
data textFile = dataFile.Replace(".ism",".txt", StringComparison.CurrentCultureIgnoreCase)
2424
UnitTestEnvironment.EnsurePlatformSpecificLineEndings(textFile.Replace(":", System.IO.Path.DirectorySeparatorChar).Replace("dat", Environment.GetEnvironmentVariable("DAT"), StringComparison.CurrentCultureIgnoreCase), 134)
2525
data customerExCh, int, 0

Services.Test/Models/CustomerEx.dbl

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Title: CustomerEx.dbl
44
;;
55
;; Description: OData model class representing data defined by the repository
6-
;; structure CUSTOMER_EX and from the data file DAT:CUSTOMER_EX.ism.
6+
;; structure CUSTOMER_EX and from the data file DAT:customer_ex.ism.
77
;;
88
;;*****************************************************************************
99
;; WARNING: GENERATED CODE!

Services.Test/UnitTestEnvironment.dbl

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace Services.Test
166166
logicals.Add(logical)
167167
end
168168

169-
fileSpec = "DAT:CUSTOMER_EX.ism"
169+
fileSpec = "DAT:customer_ex.ism"
170170
if (fileSpec.Contains(":"))
171171
begin
172172
logical = fileSpec.Split(":")[1].ToUpper()
@@ -340,7 +340,7 @@ namespace Services.Test
340340

341341
;;Create and load the customerExs file
342342

343-
dataFile = "DAT:CUSTOMER_EX.ism"
343+
dataFile = "DAT:customer_ex.ism"
344344
xdlFile = "@" + dataFile.Replace(".ism",".xdl", StringComparison.CurrentCultureIgnoreCase)
345345

346346
data customerEx, @CustomerEx
@@ -499,7 +499,7 @@ namespace Services.Test
499499
;;Delete the customerExs file
500500
try
501501
begin
502-
xcall delet("DAT:CUSTOMER_EX.ism")
502+
xcall delet("DAT:customer_ex.ism")
503503
end
504504
catch (e, @NoFileFoundException)
505505
begin

Services/Startup.dbl

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ namespace Services
168168
objectProvider.AddDataObjectMapping<Order>("DAT:orders.ism", FileOpenMode.UpdateIndexed)
169169
objectProvider.AddDataObjectMapping<OrderItem>("DAT:order_items.ism", FileOpenMode.UpdateIndexed)
170170
objectProvider.AddDataObjectMapping<Vendor>("DAT:vendors.ism", FileOpenMode.UpdateIndexed)
171-
objectProvider.AddDataObjectMapping<CustomerEx>("DAT:CUSTOMER_EX.ism", FileOpenMode.UpdateIndexed)
171+
objectProvider.AddDataObjectMapping<CustomerEx>("DAT:customer_ex.ism", FileOpenMode.UpdateIndexed)
172172
objectProvider.AddDataObjectMapping<Nonuniquepk>("DAT:nonuniquepk.ism", FileOpenMode.UpdateIndexed)
173173
objectProvider.AddDataObjectMapping<Differentpk>("DAT:differentpk.ism", FileOpenMode.UpdateIndexed)
174174
objectProvider.AddDataObjectMapping<Testcar>("DAT:testcar.ism", FileOpenMode.UpdateIndexed)

0 commit comments

Comments
 (0)