@@ -74,8 +74,7 @@ + (void)setUserCalculateForCN:(NSString *)columnName
74
74
LKDBProperty *property = [infos objectWithSqlColumnName: columnName];
75
75
if (property) {
76
76
[property enableUserCalculate ];
77
- }
78
- else {
77
+ } else {
79
78
[infos addDBPropertyWithType: LKSQL_Mapping_UserCalculate cname: columnName ctype: LKSQL_Type_Text pname: columnName ptype: @" NSString" ];
80
79
}
81
80
}
@@ -115,11 +114,9 @@ + (void)setTableColumnName:(NSString *)columnName bindingPropertyName:(NSString
115
114
if (column) {
116
115
[infos updateProperty: column propertyName: propertyName];
117
116
column.propertyType = property.propertyType ;
118
- }
119
- else if ([property.sqlColumnName isEqualToString: property.propertyName]) {
117
+ } else if ([property.sqlColumnName isEqualToString: property.propertyName]) {
120
118
[infos updateProperty: property sqlColumnName: columnName];
121
- }
122
- else {
119
+ } else {
123
120
[infos addDBPropertyWithType: LKSQL_Mapping_Binding cname: columnName ctype: LKSQL_Type_Text pname: propertyName ptype: property.propertyType];
124
121
}
125
122
}
@@ -169,14 +166,12 @@ - (id)initWithKeyMapping:(NSDictionary *)keyMapping propertyNames:(NSArray *)pro
169
166
if ([mappingValue isEqualToString: LKSQL_Mapping_UserCalculate]) {
170
167
type = LKSQL_Mapping_UserCalculate;
171
168
column_type = LKSQL_Type_Text;
172
- }
173
- else {
169
+ } else {
174
170
175
171
if ([mappingValue isEqualToString: LKSQL_Mapping_Inherit] || [mappingValue isEqualToString: LKSQL_Mapping_Binding]) {
176
172
type = LKSQL_Mapping_Inherit;
177
173
property_name = column_name;
178
- }
179
- else {
174
+ } else {
180
175
type = LKSQL_Mapping_Binding;
181
176
property_name = mappingValue;
182
177
}
@@ -191,8 +186,7 @@ - (id)initWithKeyMapping:(NSDictionary *)keyMapping propertyNames:(NSArray *)pro
191
186
192
187
[self addDBPropertyWithType: type cname: column_name ctype: column_type pname: property_name ptype: property_type];
193
188
}
194
- }
195
- else {
189
+ } else {
196
190
for (NSInteger i = 0 ; i < propertyNames.count ; i++) {
197
191
198
192
type = LKSQL_Mapping_Inherit;
0 commit comments