$ minikube version
minikube version: v1.7.1
#!/bin/bash | |
# Colors | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NO_COLOR='\033[0m' | |
BLUE='\033[0;34m' | |
YELLOW='\033[0;33m' | |
NO_COLOR='\033[0m' |
internal static T AddedOrSingleOrDefault<T>(this IDbSet<T> source, DbContext context, Func<T, bool> comparer) | |
where T : class | |
{ | |
T result = null; | |
var entry = context.ChangeTracker.Entries<T>() | |
.SingleOrDefault(e => e.State == EntityState.Added && comparer(e.Entity)); | |
if (entry != null) | |
result = entry.Entity; |
(function() { | |
function DateDiff(date1, date2) { | |
this.days = null; | |
this.hours = null; | |
this.minutes = null; | |
this.seconds = null; | |
this.date1 = date1; | |
this.date2 = date2; |