Just in time! ASP.NET vNext continued!

ASP.NET vNext
I continue to be impressed with the changes being made to ASP.NET vNext. I thought all was lost without having the Package Manager that comes installed with Visual Studio but this is handle using the kpm or K Package Manager and command section found in the project.json.

I was looking for a way to use the EntityFramework migration commands and was informed that I could configure the migration tools similar to the command used to start a local instance of the webserver.

I just added the “ef”: “EntityFramework.Commands” to the project.json commands section:

{
"dependencies": {
"Kestrel": "1.0.0-*",
"Microsoft.Framework.ConfigurationModel": "1.0.0-*",
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-*",
"Microsoft.Framework.Logging": "1.0.0-*",
"Microsoft.Framework.Logging.Console": "1.0.0-*",
"Microsoft.Framework.Cache.Memory": "1.0.0-*",
"Microsoft.AspNet.Diagnostics": "1.0.0-*",
"Microsoft.AspNet.Hosting": "1.0.0-*",
"Microsoft.AspNet.Http": "1.0.0-*",
"Microsoft.AspNet.Mvc": "6.0.0-*",
"Microsoft.AspNet.Mvc.Core": "6.0.0-*",
"Microsoft.AspNet.Mvc.ModelBinding": "6.0.0-*",
"Microsoft.AspNet.Routing": "1.0.0-*",
"Microsoft.AspNet.Server.WebListener": "1.0.0-*",
"Microsoft.AspNet.StaticFiles": "1.0.0-*",
"Microsoft.AspNet.Security": "1.0.0-*",
"Microsoft.AspNet.Security.Cookies": "1.0.0-*",
"Microsoft.AspNet.Security.Facebook": "1.0.0-*",
"Microsoft.AspNet.Security.Twitter": "1.0.0-*",
"Microsoft.AspNet.Security.Google": "1.0.0-*",
"Microsoft.AspNet.Security.MicrosoftAccount": "1.0.0-*",
"Microsoft.AspNet.Identity.EntityFramework": "3.0.0-*",
"Microsoft.AspNet.Security.DataProtection": "1.0.0-*",
"EntityFramework.Commands": "7.0.0-*",
"EntityFramework.Core": "7.0.0-*",
"EntityFramework.Relational": "7.0.0-*",
"EntityFramework.InMemory": "7.0.0-*",
"EntityFramework.SqlServer": "7.0.0-*"
},
"commands": {
"ef": "EntityFramework.Commands",
"web": "Microsoft.AspNet.Hosting –server Microsoft.AspNet.Server.WebListener –server.urls http://localhost:8080",
"kestrel": "Microsoft.AspNet.Hosting –server Kestrel –server.urls http://localhost:8181"
},
"frameworks": {
"aspnet50": {
"dependencies": {
"Microsoft.Framework.Logging.NLog": "1.0.0-*"
}
}
}
}

Then I executed k ef from the Powershell/Command prompt, and poof look what you get.

ef_migration

 

This is only the first step. You really need to understand how the EF Tools work in order to execute the commands correctly. After all, the K Runtime is still in prerelease and not all commands provide help. But next I wanted to scaffold the database based on the DbContext class I created. So, I execute the following command k migration add DbContextClassName. The DbContextClassName is just that. The name of your class that extended the DbContext, IdentityDbContext etc.

k_mirgration_add

The command creates a Migration Folder and a few files:

  1. 201502131657130_GreenShelterDbContext.cs which contains ‘public partial class GreenShelterDbContext : Migration’
  2. GreenShelterDbContextModelSnapshot.cs which contains ‘public class GreenShelterDbContextModelSnapshot : ModelSnapshot’
  3. 201502131657130_GreenShelterDbContext.Designer.cs which contains ‘public partial class GreenShelterDbContext : IMigrationMetadata’

Building blocks for migrating your database up or down.

 

 

Just in time! ASP.NET vNEXT

Just in time! ASP.NET vNEXT

Now that I’m officially out of Chicago and trying to make a new home, rather homeless home in my new city, I still need to stay current to ensure I’m employable. So how best to do that with limited funds, no computer and only a flash drive and library?

Well, I tell you. You do it by using open source frameworks, technologies and tools. Just when I was preparing to figure out how I could develop an ASP.NET MVC or Web API 2 application without an IDE, the ASP.NET team releases ASP.NET vNext.

myget_125x25

It’s promises is open source platform that focuses it develop efforts using a minimalist approach to developing industry standard applications on .NET. For me, this meant convenience and no more trying to determine which .NET assembly I truly need to built .NET applications.

I now have the luxury to develop using only a text editor, my knowledge of software development and ASP.NET vNext (KRE, KPM).

More to come soon as I prepare to venture into this new territory.
Thanks Microsoft and the ASP.NET team.

http://www.asp.net/vnext

BaaS

BaaS

I cleverly creative a new industry services name that’s been here for years. So I guess I only created the name but brought the services to light.

Any person who has every worked in any industry or field for an extended period of time could and should be able to relate to Brain as a Service or BaaS. In fact, its more simple than I first thought. We all have experience or knowledge that we store in memory for later use. For instance, proper hygiene. We observe, practice and store in memory how and when to bath or brush.

ibm_kks_baas

Brain as a Service

The point I’m trying to make is that whenever you have participated in any active long enough, you realize never tend to forget. So as a Software Developer with 15 years of experience do you every forget the work complete during the full product development lifecylce? NO! Do you every forget sound object oriented development principals? NO! At the heart of developing software there are fundamental concepts that serve as a base for all types of development from desktop, web or mobile. The only thing that changes is the tools and technologies, and I can argue that I, like most, individuals on the planet have the capacity to learn baked into our DNA. So if I decide to take family leave of abuse or a sabbatical for any extended period of time. I wont forget out to work. Point in case, look at a woman who takes time off. Why should it be any different for a man?

I’ve been in the BaaS for a long long time…

Last note as published by WebMD – Is Your Memory Normal?

Memory is the ability to normally recall the facts and events of our lives, and this takes place in three stages:

  • Stage 1: Encoding. This is when a person takes information in.
  • Stage 2: Consolidation. This is when the brain takes the information it encodes and processes it so that it gets stored in certain areas of the brain.
  • Stage 3: Retrieval. When a person recalls stored information in the brain.

So, yes it perfectly fine to forget things that HAVE NOT BEEN COMMIT TO LONG TERM MEMORY.

Recruiter’s you need to come up with a new line other than there’s a gap in your CV, cause I’ve done mostly everything that you all have asked from acquiring new or updating certifications, blogging, formal education, to developing on a range of current software and project processes.

Need More Time at CPL

DO YOU WANT TO LEARN HOW TO GET MORE TIME ON YOUR CPL SESSION?

ALL YOU NEED IS A USB FLASH DRIVE

COMMAND.COM or CMD.COM PROGRAM

POWERSHELL COMLET (Get-Process and Stop-Process) AND A LITTLE COMPUTER KNOWLEDGE

THE KEY IS UNDERSTANDING WHICH PROCESS TO KILL. KILL REFERS TO STOPPING THE RUNNING PROGRAM. IN THIS CASE THE Time Remaining CLOCK.

THIS WILL ONLY WORK ON A WINDOWS BASED VISTA OR GREATER MACHINE.
***************************************************************
Disclaimer: Using these limited instruction at your own risk. I WILL NOT BE HELD RESPONSIBLE FOR DAMAGE TO THE COMPUTER YOU PLAN ON HACKING. CHEERS!!!!!!!
***************************************************************

Copy the following command and paste it to a file call offline.bat:

powershell -command stop-process -name ‘PC Reservation Client Module’

***************************************************************
Disclaimer: Using these limited instruction at your own risk. I WILL NOT BE HELD RESPONSIBLE FOR DAMAGE TO THE COMPUTER YOU PLAN ON HACKING. CHEERS!!!!!!!
***************************************************************

Copy the following command and paste it to a file call online.bat:


“C:\Progra~1\Envisi~1\PCRese~1\Client~1\PcReser~1.exe”
“C:\Program Files\EnvisionWare\PC Reservation\Client Module\PC Reservation Client Module.exe”

***************************************************************
Disclaimer: Using these limited instruction at your own risk. I WILL NOT BE HELD RESPONSIBLE FOR DAMAGE TO THE COMPUTER YOU PLAN ON HACKING. CHEERS!!!!!!!
***************************************************************