Skip to content

Commit 43ce13f

Browse files
author
zzzprojects
committed
Improve design
Improve design
1 parent 086edbd commit 43ce13f

File tree

4 files changed

+60
-35
lines changed

4 files changed

+60
-35
lines changed

docs/_sass/page-index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
}
5858
.features .more-info {
5959
padding-top: 40px;
60+
padding-bottom: 40px;
6061
}
6162
.features .more {
6263
text-align: center;

docs/_sass/site-footer.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@
3131
.site-footer {
3232
padding: 20px 0;
3333
}
34+
}
35+
@media (max-width: 575px) {
36+
.site-footer {
37+
display: none;
38+
}
3439
}

docs/css/master.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@
9393
left: 150%;
9494
}
9595
}
96+
@media (max-width: 575px) {
97+
.header-angle .top-triangle {
98+
display: none;
99+
}
100+
.header-angle .bottom-triangle {
101+
display: none;
102+
}
103+
}
96104

97105

98106
.layout-angle {
@@ -142,6 +150,15 @@
142150
left: 150%;
143151
}
144152
}
153+
@media (max-width: 575px) {
154+
.layout-angle .top-triangle {
155+
display: none;
156+
}
157+
.layout-angle .bottom-triangle {
158+
display: none;
159+
}
160+
}
161+
145162

146163

147164
.text-z {

docs/index.md

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ context.BulkMerge(customers,
201201
<div class="container">
202202
<h2>Amazing <span class="text-z">performance</span>, outstanding <span class="text-z">support</span>!</h2>
203203

204-
<blockquote class="blockquote text-center">
204+
<blockquote class="blockquote text-center wow slideInLeft">
205205
<p class="mb-0">We were very, very pleased with the customer support. There was no question, problem or wish that was not answered AND solved within days! We think that’s very unique!</p>
206206
<footer class="blockquote-footer">Klemens Stelzmüller, <a href="http://www.beka-software.at/" target="_blank">Beka-software</a></footer>
207207
</blockquote>
208-
<blockquote class="blockquote text-center">
208+
<blockquote class="blockquote text-center wow slideInRight">
209209
<p class="mb-0">I’d definitely recommend it as it is a great product with a great performance and reliability.</p>
210210
<footer class="blockquote-footer">Eric Rey, <a href="http://www.transturcarrental.com/" target="_blank">Transtur</a></footer>
211211
</blockquote>
212-
<blockquote class="blockquote text-center">
212+
<blockquote class="blockquote text-center wow slideInLeft">
213213
<p class="mb-0">It’s great. It took me 5 minutes to implement it and makes my application 100x more responsive for certain database operations.</p>
214214
<footer class="blockquote-footer">Dave Weisberg</footer>
215215
</blockquote>
@@ -231,10 +231,10 @@ context.BulkMerge(customers,
231231
<div class="container">
232232
233233
<!-- Bulk SaveChanges !-->
234-
<h2>Bulk SaveChanges</h2>
234+
<h2 class="wow slideInUp">Bulk SaveChanges</h2>
235235
<div class="row">
236-
<div class="col-lg-5">
237-
<p class="feature-tagline">Improving your applications performance couldn’t have been made <span class="text-bold-red">easier</span>!</p>
236+
<div class="col-lg-5 wow slideInLeft">
237+
<p class="feature-tagline">Add 4 letters <span class="text-z">Bulk</span> to make your application <span class="text-z">10-50 times</span> faster and more responsive.</p>
238238
<ul>
239239
<li>Easy to use</li>
240240
<li>Easy to customize</li>
@@ -247,7 +247,7 @@ context.BulkMerge(customers,
247247
</a>
248248
</div>
249249
</div>
250-
<div class="col-lg-7">
250+
<div class="col-lg-7 wow slideInRight">
251251
<div class="card card-code card-code-light">
252252
<div class="card-header">Bulk SaveChanges Examples</div>
253253
<div class="card-body">
@@ -256,7 +256,7 @@ context.BulkMerge(customers,
256256
context.BulkSaveChanges();
257257

258258
// Easy to customize
259-
context.BulkSaveChanges(operation => operation.BatchSize = 1000);
259+
context.BulkSaveChanges(options => options.BatchSize = 1000);
260260
{% endhighlight %}
261261
</div>
262262
</div>
@@ -266,14 +266,16 @@ context.BulkSaveChanges(operation => operation.BatchSize = 1000);
266266
<hr class="m-y-md" />
267267
268268
<!-- Bulk Operations !-->
269-
<h2>Bulk Operations</h2>
269+
<h2 class="wow slideInUp">Bulk Operations</h2>
270270
<div class="row">
271-
<div class="col-lg-5">
272-
<p class="feature-tagline">Use <span class="text-bold-red">flexible</span> features to overcome Entity Framework limitations</p>
271+
<div class="col-lg-5 wow slideInLeft">
272+
<p class="feature-tagline">Add the maximum <span class="text-z">flexibility</span> to cover every scenario.</p>
273273
<ul>
274-
<li>Choose batch size</li>
275-
<li>Choose columns</li>
276-
<li>Choose primary key</li>
274+
<li>Bulk Insert</li>
275+
<li>Bulk Update</li>
276+
<li>Bulk Delete</li>
277+
<li>Bulk Merge</li>
278+
<li>Bulk Synchronize</li>
277279
</ul>
278280
<div class="more-info">
279281
<a href="{{ site.github.url }}/tutorial-bulk-operations" class="btn btn-lg btn-z" role="button">
@@ -282,20 +284,21 @@ context.BulkSaveChanges(operation => operation.BatchSize = 1000);
282284
</a>
283285
</div>
284286
</div>
285-
<div class="col-lg-7">
287+
<div class="col-lg-7 wow slideInRight">
286288
<div class="card card-code card-code-light">
287289
<div class="card-header">Bulk Operations Examples</div>
288290
<div class="card-body">
289291
{% highlight csharp %}
290-
// Use all kind of bulk operations
291-
context.BulkInsert(customers);
292-
context.BulkUpdate(customers);
293-
context.BulkDelete(customers);
294292

295-
// Customize your operation
296-
context.BulkMerge(customers, operation => {
297-
operation.BatchSize = 1000;
298-
operation.ColumnPrimaryKeyExpression = customer => customer.Code;
293+
// Allow custom key
294+
context.BulkMerge(customers, options => {
295+
options.ColumnPrimaryKeyExpression =
296+
customer => customer.Code;
297+
});
298+
299+
// Allow child entities
300+
context.BulkMerge(customers,
301+
options => options.IncludeGraph = true);
299302
});
300303
{% endhighlight %}
301304
</div>
@@ -306,9 +309,9 @@ context.BulkMerge(customers, operation => {
306309
<hr class="m-y-md" />
307310

308311
<!-- Batch Operations !-->
309-
<h2>Batch Operations</h2>
312+
<h2 class="wow slideInUp">Batch Operations</h2>
310313
<div class="row">
311-
<div class="col-lg-5">
314+
<div class="col-lg-5 wow slideInLeft">
312315
<p class="feature-tagline">Perform bulk operations from LINQ Query without loading entities in the context.</p>
313316
<ul>
314317
<li>DeleteFromQuery</li>
@@ -321,20 +324,19 @@ context.BulkMerge(customers, operation => {
321324
</a>
322325
</div>
323326
</div>
324-
<div class="col-lg-7">
327+
<div class="col-lg-7 wow slideInRight">
325328
<div class="card card-code card-code-light">
326329
<div class="card-header">Batch Operations Examples</div>
327330
<div class="card-body">
328331
{% highlight csharp %}
329-
// DELETE all customers that are inactive for more than 2 years
330-
context.Customers
331-
.Where(x => x.LastLogin < DateTime.Now.AddYears(-2))
332-
.DeleteFromQuery(operation => operation.BatchSize = 10000);
333-
334-
// UPDATE all customers that are inactive for more than 2 years
335-
context.Customers
336-
.Where(x => x.Actif && x.LastLogin < DateTime.Now.AddYears(-2))
337-
.UpdateFromQuery(x => new Customer {Actif = false});
332+
// DELETE all inactive customers
333+
context.Customers.Where(x => !x.IsActif)
334+
.DeleteFromQuery();
335+
336+
// UPDATE all inactive customers
337+
context.Customers.Where(x => !x.IsActif)
338+
.UpdateFromQuery(x =>
339+
new Customer {IsActif = true});
338340
{% endhighlight %}
339341
</div>
340342
</div>

0 commit comments

Comments
 (0)