Posts

Showing posts from February 4, 2019

ef core 2.2 preview migration change

Image
2 we just updated Entity Framework Core from 2.1 to 2.2.Preview3. It seems that the migrator / modelbuilder changed and I am wondering if it is a bug or fix. If have the following Entity: public class User { public string UserName { get; set; } public Guid? PasswordGUID { get; set; } [ForeignKey("PasswordGUID")] public Password Password { get; set; } } The entity class Password has no navigation property to the entity class User. With EfCore 2.1 the User Password relationship got the following lines in the modelsnapshot: ... u.Property<Guid?>("PasswordGUID"); ... u.HasIndex("PasswordGUID"); ... u.HasOne("Password", "Password") .WithMany() .HasForeignKey("PasswordGUID"); Now after the update from EfC...

FirebaseAuth.currentUser is null where as GoogleSignIn.getLastSignedInAccount(this)

Image
0 FirebaseAuth.currentUser is null where as GoogleSignIn.getLastSignedInAccount(this) in onStart I fetched last SignedIn Account it give me the last login but when I call FirebaseAuth.currentUser it is null why.. GoogleSignInActivity.kt class GoogleSignInActivity : BaseActivity(), View.OnClickListener, GoogleApiClient.OnConnectionFailedListener, GoogleApiClient.ConnectionCallbacks { private val RC_SIGN_IN = 9001 private var mGoogleApiClient: GoogleApiClient? = null private var mGoogleSignInClient: GoogleSignInClient? = null // Firebase instance variables private val mFirebaseAuth: FirebaseAuth? = FirebaseAuth.getInstance() private var mAuthListener: FirebaseAuth.AuthStateListener? = null private fun configureSignIn() { val gso = GoogleSignI...